On Tue, 2008-04-08 at 15:35 +0400, Oleg Nesterov wrote:Q: When ppoll() is interrupted by a signal, what signal mask should be active when the signal handler is active? I believe that the signal handler should run with the temporary sigmask which was set by ppoll(), and the original sigmask should be restored only when the handler completes -- and that's what we achieve with TIF_RESTORE_SIGMASK. So a signal which was originally enabled but is temporarily disabled by the mask passed to ppoll() will not be able to interrupt the handler for the signal which interrupted ppoll(). Your version will restore the original signal mask _before_ invoking the signal handler which interrupted ppoll() -- which I believe is not the intended semantics. And IIRC that was the whole point in implementing ppoll() in kernel rather than trying to emulate it in userspace in the first place. -- dwmw2 --
| Arjan van de Ven | [patch] Add basic sanity checks to the syscall execution patch |
| Rafael J. Wysocki | Re: Linux 2.6.25-rc2 |
| Andrew Morton | Re: 2.6.23-rc4-mm1 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Linus Torvalds | Re: On Tabs and Spaces |
| Lars Hjemli | Re: kernel.org mirroring (Re: [GIT PULL] MMC update) |
| Eric Wong | Re: [RFC] Git config file reader in Perl (WIP) |
| Jakub Narebski | Re: GSoC 2008 - Mentors Wanted! |
| Karel Kulhavy | OpenBSD sticker considered cool by a layman |
| Richard Stallman | Real men don't attack straw men |
| Marco Peereboom | Re: Multi-Threaded SSH/SCP made by university of Puttsburgh |
| Douglas A. Tutty | lock(1) to lock all virtual terminals? |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Brandon S. Allbery | Re: mkdir says "no space left on device" and more problems... |
| Arthur Recktenwald | rcmd: socket: Permission denied |
| massimo rossi | Re: SLS on Compaq Deskpro 66M (486-66/DX2 EISA [ugh])? |
