Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^5: print() function hang for long timeby soonix (Canon) |
on Feb 19, 2013 at 16:41 UTC ( [id://1019613]=note: print w/replies, xml ) | Need Help?? |
Perhaps just on this machine, perl is configured differently (e.g. bigger buffers), or the operating system might add another level of buffers ... "rc3" sounds like an init script, that would log to a file, wouldn't it? So that is usually buffered. Most probably your login triggers other activities that make your "rc3" print additional messages, thus filling the buffer and writing it out to disk, and then your tty can see it. (This section edited) In my previous msg I overlooked that you print also to a file handle and not only to STDOUT.
In Section
Seekers of Perl Wisdom
|
|