unexpected failure of cygwin32_winpid_to_pid
Yitzchak Scott-Thoennes
sthoenna@efn.org
Wed Nov 9 01:04:00 GMT 2005
Using 20051108, I just saw failures twice in tests of the perl binding
for cygwin32_winpid_to_pid, but no failure on every try since. The
test looks like:
my $catpid = open my $cat, "|cat" or die "Couldn't cat: $!";
open my $ps, "ps|" or die "Couldn't do ps: $!";
my ($catwinpid) = map /^.\s+$catpid\s+\d+\s+\d+\s+(\d+)/, <$ps>;
close($ps);
is(Cygwin::winpid_to_pid($catwinpid), $catpid, "winpid to pid");
is(Cygwin::pid_to_winpid($catpid), $catwinpid, "pid to winpid");
close($cat);
in perl, where Cygwin::winpid_to_pid internally just calls
cygwin32_winpid_to_pid. I'm not able to think of any way in which
system load or a race could cause this failure. Any suggestions?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list