in reply to Re: What happens to a '-|' (pipe) file handle across a fork()?
in thread What happens to a '-|' (pipe) file handle across a fork()?
Right; but the parent is gone. What are you trying to do? This is a daemon exiting after fork. Lousy parent, I'd say.That's exactly what a daemon parent is supposed to do: fork() a child into a detached state (see Paul Barry's "Programming the Network with Perl" for examples, i.e. p. 125-126). Otherwise, the process call it would also block forever. But more to the point, I'm referring to the other child, then child resulting from the open($pipe, '-|', 'ip -o xfrm monitor')—that child.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What happens to a '-|' (pipe) file handle across a fork()?
by shmem (Chancellor) on Nov 08, 2015 at 21:31 UTC | |
by pprindeville (Novice) on Nov 09, 2015 at 04:12 UTC | |
by shmem (Chancellor) on Nov 10, 2015 at 11:13 UTC |