commit | 0c7f84ca41ebd871615426b9a159922422701859 | [log] [tgz] |
---|---|---|
author | Brad King <brad.king@kitware.com> | Mon May 19 10:53:51 2014 -0400 |
committer | Brad King <brad.king@kitware.com> | Tue May 20 09:48:35 2014 -0400 |
tree | a73bbc5ed7635ab34d02794b2fadb30cefa862b2 | |
parent | e604209cb930c5bc7e53f58625407b82e6899d0f [diff] |
KWSys Process: Workaround child kill trouble on Cygwin When we kill a child we send SIGSTOP first so that we can traverse its child processes recursively. On unwinding the recursion we then send SIGKILL. Current Cygwin has trouble when both signals are sent in quick succession by the parent process. Add a usleep(1) after sending the first signal to give up our time slice and give Cygwin a chance to process the first signal before sending the second.