aboutsummaryrefslogtreecommitdiff
path: root/nptl/pt-recvmsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pt-recvmsg.c')
-rw-r--r--nptl/pt-recvmsg.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nptl/pt-recvmsg.c b/nptl/pt-recvmsg.c
index e5ceaaad0c..e4f7dbfd39 100644
--- a/nptl/pt-recvmsg.c
+++ b/nptl/pt-recvmsg.c
@@ -27,12 +27,9 @@
ssize_t
recvmsg (int fd, struct msghdr *message, int flags)
{
- int oldtype;
- ssize_t result;
+ int oldtype = CANCEL_ASYNC ();
- CANCEL_ASYNC (oldtype);
-
- result = __libc_recvmsg (fd, message, flags);
+ ssize_t result = __libc_recvmsg (fd, message, flags);
CANCEL_RESET (oldtype);