http://qs321.pair.com?node_id=289357


in reply to How to trace a dying process

As usual, questions lead to more questions. I have code like this:
while (<>) { ... }
Is it possible that a EOF character is getting printed by syslog-ng and closing down the while loop?

Replies are listed 'Best First'.
Re: Re: How to trace a dying process
by sgifford (Prior) on Sep 07, 2003 at 03:15 UTC
    Not under UNIX. EOF/EOT is CTRL-D, which is ASCII 4:
    $ printf "hi\n\004\nthere\n" |perl -e'while(<>){print}' hi there
    I have no idea about other OS's, though.