in reply to Re^2: confusing fork/readline behaviour
in thread confusing fork/readline behaviour
Presumably my script above is unsafe in the general case - I imagine libc could readahead 4k and not finish on a line boundary, then the second process would call readline and start halfway through a line.
Correct.
Why do you want two processes to read the same file?
Alexander
|
|---|