Re: [PATCH - take 2] knfsd: nfsd: Handle ERESTARTSYS from syscalls.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: J. Bruce Fields
Date: Friday, June 20, 2008 - 10:50 am

On Thu, Jun 19, 2008 at 06:38:24AM -0400, Jeff Layton wrote:

Just looking out of curiosity: signal_pending() checks whether some
thread_info->flags has TIF_SIGPENDING set.

sigprocmask() sets current->blocked to the given set, then calls
recalc_sigpending(), which (ignoring some freezer and SIGSTOP code that
I don't understand), clears TIF_SIGPENDING if any pending signals are in
the newly blocked set.  So, yes.

--b.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH - take 2] knfsd: nfsd: Handle ERESTARTSYS from ..., J. Bruce Fields, (Fri Jun 20, 10:50 am)