On 03/30/2016 04:03 PM, Yvan Roux wrote: > > I not sure what's the best way to fix this issue without > re-introducing the pid race in GDB. I'm testing a solution which > first gather all the childs processes of the close_wait_program pid > input (with a recursive call of pgrep -P) and then kill them all with > a -15, my assumption is that killing explicitly all the processes > (maybe in the child -> parent order) will avoid the need of stdin > closing and the pid re-use race, but I might be wrong, and all > comments are welcome.
Since the process may ignore SIGTERM/15, seems to me you'd still need to wait a bit and kill with SIGKILL/9 if the process doesn't die the first time around. So I'm not seeing how, but maybe if you showed a snippet it'd be clearer. > It works so far on a subset of the testsuite, > but I'm still validating this approach. Now, maybe just the reducing > the sleeping time might workaround the issue.... Thanks, Pedro Alves _______________________________________________ DejaGnu mailing list DejaGnu@gnu.org https://lists.gnu.org/mailman/listinfo/dejagnu