Forked from
Utils / KWSys
Source project has a limited visibility.
-
Brad King authored
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. Change-Id: I75ab55cf969a0ea6104a9798c761c0ba1fcd1dbc
Brad King authoredWhen 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. Change-Id: I75ab55cf969a0ea6104a9798c761c0ba1fcd1dbc