Messages in this thread | | | Date | Thu, 13 Feb 2003 12:22:06 -0800 (PST) | From | Davide Libenzi <> | Subject | Re: Synchronous signal delivery.. |
| |
On Thu, 13 Feb 2003, Linus Torvalds wrote:
> It's a generic "synchronous signal delivery" method, and it uses a > perfectly regular file descriptor to deliver an arbitrary set of signals > that are pending. > > It adds one new system call: > > fd = sigfd(sigset_t * mask, unsigned long flags); > > which creates a file descriptor that is associated with the particular > thread that created it, and the particular signal mask that the user was > interested in. That file descriptor can be passed around all the normal > ways: it can be dup()'ed, given to somebody else with a AF_UNIX socket, > and obviously read() and select()/poll()'ed upon.
That's really nice, I like file-based interfaces. No plan to have a way to change the sig-mask ? Close and reopen ? What do you think about having timers through a file interface ?
> Any real use would also probably be a select() or poll() loop.
And sice it supports ->poll(), epoll.
- Davide
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |