[Glibc-bsd-commits] r5688 - trunk/glibc-ports/kfreebsd/fbtl
ps-guest at alioth.debian.org
ps-guest at alioth.debian.org
Sun Nov 16 11:26:02 UTC 2014
Author: ps-guest
Date: 2014-11-16 11:26:02 +0000 (Sun, 16 Nov 2014)
New Revision: 5688
Modified:
trunk/glibc-ports/kfreebsd/fbtl/sigwait.c
Log:
sigwait is not allowed to return EINTR
Modified: trunk/glibc-ports/kfreebsd/fbtl/sigwait.c
===================================================================
--- trunk/glibc-ports/kfreebsd/fbtl/sigwait.c 2014-11-12 02:03:54 UTC (rev 5687)
+++ trunk/glibc-ports/kfreebsd/fbtl/sigwait.c 2014-11-16 11:26:02 UTC (rev 5688)
@@ -30,6 +30,8 @@
static int
do_sigwait (const sigset_t *set, int *sig)
{
+ int ret;
+
#ifdef SIGCANCEL
sigset_t tmpset;
if (set != NULL
@@ -48,8 +50,11 @@
set = &tmpset;
}
#endif
-
- return INLINE_SYSCALL (sigwait, 2, set, sig);
+ do {
+ ret = INLINE_SYSCALL (sigwait, 2, set, sig);
+ } while (ret == EINTR);
+
+ return ret;
}
int
More information about the Glibc-bsd-commits
mailing list