2011-09-24 54 views
1

當使用Poco的Process::launch(command,args)時,我注意到在Linux機器上實現過程不會消失。 當看着這個過程時,它得到一個等待頻道do_exit和一個殭屍狀態(Ubuntu)。 不知何故,它不會消失。Poco進程不退出

這是正常的行爲嗎?

回答

0

你應該得到進程句柄。

Poco::ProcessHandle handle = Process::launch(command,args) 

然後使用手柄來殺死或等待

handle.wait; // wait untill process finshes job 
Process.kill(handle); // kill process