in reply to Re: cleanly exiting threads
in thread cleanly exiting threads
Okay, I'm running under linux so my understanding that an open2 is actually a fork, correct?
I have verified that my
at the end of the while loop is returning with $kpid always matching $pid -- which i believe means that the process is actually done.$kpid = waitpid ($pid, 0);
Having said that, I have no idea what the binaries that I am running with the open command may be doing. they maybe not quite finishing, so, maybe doing an explicit kill would be better than just waiting...or perhaps send the sigint, (which they all handle), then leave the waitpid in place. may be more reliable
So thanks for the thoughts, i'll have to dig in again tomorrow.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: cleanly exiting threads
by BrowserUk (Patriarch) on Aug 14, 2008 at 02:27 UTC |