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