1
当使用Poco的Process::launch(command,args)
时,我注意到在Linux机器上实现过程不会消失。 当看着这个过程时,它得到一个等待频道do_exit
和一个僵尸状态(Ubuntu)。 不知何故,它不会消失。Poco进程不退出
这是正常的行为吗?
当使用Poco的Process::launch(command,args)
时,我注意到在Linux机器上实现过程不会消失。 当看着这个过程时,它得到一个等待频道do_exit
和一个僵尸状态(Ubuntu)。 不知何故,它不会消失。Poco进程不退出
这是正常的行为吗?
你应该得到进程句柄。
Poco::ProcessHandle handle = Process::launch(command,args)
然后使用手柄来杀死或等待
handle.wait; // wait untill process finshes job
Process.kill(handle); // kill process