waste of resources ?
Ben Gertzfield
che at debian.org
Mon Jun 7 17:06:54 EDT 1999
>>>>> "Hrvoje" == Hrvoje Niksic <hniksic at srce.hr> writes:
Hrvoje> Except that when a signal arrives during an IO operation,
Hrvoje> it will be canceled due to the EINTR brain-damage, and
Hrvoje> Python will throw an exception. So if you expect your
Hrvoje> program to accept SIGCHLD signals at random intervals,
Hrvoje> you'd better encase all your IO operation in a loop like
Hrvoje> this:
<snip>
Hrvoje> This problem with signals has been my long-standing gripe
Hrvoje> with Python.
If I recall correctly, Perl has just about the exact same problem.
Is there a good way to fix it?
--
Brought to you by the letters Z and I and the number 1.
"Well, I think Perl should run faster than C. :-)"
Debian GNU/Linux maintainer of Gimp and GTK+ -- http://www.debian.org/
More information about the Python-list
mailing list