New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGTERM not terminating child process #9165
Comments
From @jdheddenThis is a bug report for perl from jdhedden[at]cpan[dot]org, 'make test' in blead has been failing for me with: ext/Time/HiRes/t/HiRes........................................FAILED--non-zero The cause is that SIGTERM to a child process does not always #!/usr/bin/perl use strict; print("Main process = $$\n"); my $child_pid = fork(); if ($child_pid == 0) { # Should not get here because child will be killed by SIGTERM sleep(2); # Let child process start print("Main process ($$) terminating child process ($child_pid)\n"); sleep(1); This script frequently outputs: Main process = 656 This shows that the SIGTERM to the child process is knocking Perl Info
|
From @jhi: This shows that the SIGTERM to the child process is knocking I'm not saying that this shouldn't be made to work in Time::HiRes, |
The RT System itself - Status changed from 'new' to 'open' |
From @rurban2007/12/24, Jarkko Hietaniemi <jhi@iki.fi>:
I can confirm this failing SIGTERM cygwin behaviour |
From @jdheddenJerry D. Hedden reported:
Jarkko Hietaniemi replied:
Reini Urban wrote:
Attached is a workaround for t/HiRes.t to at least keep the The workaround is to split the child's sleep in two. When the |
From @jdhedden--- perl-current/ext/Time/HiRes/t/HiRes.t |
Migrated from rt.perl.org#49073 (status was 'open')
Searchable as RT49073$
The text was updated successfully, but these errors were encountered: