in reply to Forked pipe open...or do???
update: Just forgot.... You already read it... So here is a bit of explanation. The "open" returns a process ID, 0 or undef.use English '-no_match_vars'; my $sleep_count = 0; do { $pid = open(KID_TO_WRITE, "|-"); unless (defined $pid) { warn "cannot fork: $!"; die "bailing out" if $sleep_count++ > 6; sleep 10; } } until defined $pid;
|
|---|