Re: perl programs hang if run with daemontools

[email protected] (Paul Jarc)
Newsgroups gmane.comp.djb.syslog
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
Oscar Retana <[email protected]> wrote:
> But any real script hangs. For example, if I add a single "sleep", I 
> stop receiving any log.

Perl is buffering its output.  You can add "$|=1;" to make the output
unbuffered, but for a large script written by someone else, you should
probably check with them to see if any other changes would be needed.


paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.