aboutsummaryrefslogtreecommitdiff
path: root/nptl/pt-accept.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pt-accept.c')
-rw-r--r--nptl/pt-accept.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nptl/pt-accept.c b/nptl/pt-accept.c
index 09e2c52efd..1b25e9eff8 100644
--- a/nptl/pt-accept.c
+++ b/nptl/pt-accept.c
@@ -27,12 +27,9 @@
int
accept (int fd, __SOCKADDR_ARG addr, socklen_t *addr_len)
{
- int oldtype;
- int result;
+ int oldtype = CANCEL_ASYNC ();
- CANCEL_ASYNC (oldtype);
-
- result = __libc_accept (fd, addr, addr_len);
+ int result = __libc_accept (fd, addr, addr_len);
CANCEL_RESET (oldtype);