Jason Lunz wrote:
> [EMAIL PROTECTED] said:
> 
> > Sort of like being able to define signal handlers
> > for file descriptors instead of having a small, fixed number of
> > signals.)
> 
> That's supported on linux, but I don't
> know how portable it is. See F_SETSIG in fcntl(2), and sigaction(2).

According to the man page, it's Linux-specific.

It's not quite the same thing, anyway. What I had in
mind was attaching the handler itself directly to the
file descriptor, rather than going through a signal
number. That way, different piece of code can use the
mechanism independently on different file descriptors
without having to coordinate over sharing a signal
handler.

--
Greg
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to