projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a530b32
)
*** empty log message ***
author
Jim Meyering
<jim@meyering.net>
Sun, 26 Dec 1999 10:19:40 +0000
(10:19 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 26 Dec 1999 10:19:40 +0000
(10:19 +0000)
lib/nanosleep.c
patch
|
blob
|
history
diff --git
a/lib/nanosleep.c
b/lib/nanosleep.c
index d5789bd46532e49be25be4f91da121c000e3dd7b..126a02622031f4eb2e2132bbcf39553fe5b7af43 100644
(file)
--- a/
lib/nanosleep.c
+++ b/
lib/nanosleep.c
@@
-22,6
+22,11
@@
#include <sys/types.h>
#include <signal.h>
+#include <errno.h>
+#ifndef errno
+extern int errno;
+#endif
+
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
@@
-98,5
+103,7
@@
nanosleep (const struct timespec *requested_delay,
/* FIXME: Restore sig handler? */
+ errno = EINTR;
+
return suspended;
}