JeffGarland / liaw2019-process

Repository for initial drafting of boost.process standards paper
MIT License
5 stars 3 forks source link

Cologne: SG1 question - does terminate on a process block? #44

Closed JeffGarland closed 5 years ago

JeffGarland commented 5 years ago

This one is for @klemens-morgenstern to answer.

Mattias G: If you call terminate on a process does it block? JG: I'm not sure, will get back to you.

klemens-morgenstern commented 5 years ago

It does block until the process is terminated. IT does however not give the child process a chance to react, so it definitely termiantes every single time.

JeffGarland commented 5 years ago

Ok so it's the equivalent of a kill -9? Since obviously the normal kill wouldn't be enough to guarantee the child terminates.

klemens-morgenstern commented 5 years ago

Yes, it is kill -9 on linux. A friendly kill request doesn't exist (at least in a reliable way) on windows.

JeffGarland commented 5 years ago

Interesting - I didn't realize that. Thanks.