Add SA_RESTART flag to signal handler
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 7 Jul 2009 22:14:19 +0000 (18:14 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 7 Jul 2009 22:14:19 +0000 (18:14 -0400)
commitdd052bd346ddd497ed79f771ea1d5b3406bbcf07
treecd57dfe81de89da4d4152d478c081fd23394b663
parent7abf2d0da3b328572a17c9457b33c3890b0ba58b
Add SA_RESTART flag to signal handler

With this flag, the kernel restarts automatically some system calls
that were interrupted by the signal. Without this flag, these system
calls would fail with errno = EINTR.

Even with this flag, the kernel cannot restart some system calls, and
developers should verify whether these system calls failed with EINTR
and restart them manually in that case. For the list of system calls
that cannot be restarted automatically, see signal(7).

Because of this, we cannot completely eliminate the side-effects of
liburcu on the application, but I think we should try our best and
set SA_RESTART.

From: Pierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
README
urcu.c
This page took 0.033573 seconds and 4 git commands to generate.