diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-05-21 00:05:38 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-05-21 00:05:38 +0000 |
commit | f301b575428f237ba2582a6c57dddab1b2a2f501 (patch) | |
tree | b56de9ec8acccddefc4bde24e6e744ba3155d947 /sysdeps/unix | |
parent | ba11b11f3fa92b5b3857372d9d5b073813ec41e5 (diff) | |
download | glibc-f301b575428f237ba2582a6c57dddab1b2a2f501.tar glibc-f301b575428f237ba2582a6c57dddab1b2a2f501.tar.gz glibc-f301b575428f237ba2582a6c57dddab1b2a2f501.tar.bz2 glibc-f301b575428f237ba2582a6c57dddab1b2a2f501.zip |
Save errno.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/poll.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/poll.c b/sysdeps/unix/sysv/linux/poll.c index 875c3b48f8..b92139aab4 100644 --- a/sysdeps/unix/sysv/linux/poll.c +++ b/sysdeps/unix/sysv/linux/poll.c @@ -41,10 +41,13 @@ poll (fds, nfds, timeout) { if (syscall) { + int errno_saved = errno; int retval = __syscall_poll (fds, nfds, timeout); if (retval >= 0 || errno != ENOSYS) return retval; + + __set_errno (errno_saved); } must_emulate = 1; |