lkml.org 
[lkml]   [2005]   [Aug]   [1]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 1 Aug 2005 00:09:53 -0700
FromUlrich Drepper <>
SubjectRe: Fw: sigwait() breaks when straced
On 7/31/05, Roland McGrath <roland@redhat.com> wrote:
> However, there is in fact no bug here.  The test program is just wrong.
> sigwait returns zero or an error number, as POSIX specifies.

No question, no error is detected incorrectly.

But sigwait is not a function specified with an EINTR error number. 
As I said before, this does not mean that EINTR cannot be returned. 
But it will create havoc among programs and it causes undefined
behavior wrt to SA_RESTART.  I think it is best to not have any
function for which EINTR is not a defined error to fail this way. 
This causes the least amount of surprises and unnecessary loops around
the userlevel call sites.
-
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/

\
 
 \ /
  Last update: 2005-08-01 09:15    [W:0.464 / U:0.410 seconds]
©2003-2008 Jasper Spaans