2011-09-24 3 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 
관련 문제