lkml.org 
[lkml]   [2006]   [Jul]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 06 Jul 2006 11:55:50 -0700
FromUlrich Drepper <>
SubjectRe: Strange Linux behaviour with blocking syscalls and stop signals+SIGCONT
Manfred Spraul wrote:
> 1) I would go further and try ERESTARTSYS: ERESTARTSYS means that the
> kernel signal handler honors SA_RESTART
> 2) At least for the futex functions, it won't be as easy as replacing
> EINTR wiht ERESTARTSYS: the futex functions receive a timeout a the
> parameter, with the duration of the wait call as a parameter. You must
> use ERESTART_RESTARTBLOCK.

Whoa, not so fast.  At least the futex syscall but be interruptible by
signals.  It is crucial to return EINTR.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2006-07-06 19:01    [from the cache]
©2003-2008