in reply to IO::Select, IO::Pipe, fork, Data loss
Bunch of don'ts:
Don't use ->getlines when using select, use sysread instead.
Don't use non-blocking, it's not needed.
Don't forget to check eval for failure - especially from a partial (non-blocking) read.
Don't forget to define $c_max :)
Don't forget about $child_pid = open(my $fh, "-|") self-forking open if you are just reading from a child.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: IO::Select, IO::Pipe, fork, Data loss
by Anonymous Monk on Aug 05, 2015 at 19:39 UTC |