about summary refs log tree commit diff
path: root/nptl/pt-send.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pt-send.c')
-rw-r--r--nptl/pt-send.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nptl/pt-send.c b/nptl/pt-send.c
index 90221adc24..5af725e36f 100644
--- a/nptl/pt-send.c
+++ b/nptl/pt-send.c
@@ -27,12 +27,9 @@
 ssize_t
 __send (int fd, const __ptr_t buf, size_t n, int flags)
 {
-  int oldtype;
-  ssize_t result;
+  int oldtype = CANCEL_ASYNC ();
 
-  CANCEL_ASYNC (oldtype);
-
-  result = __libc_send (fd, buf, n, flags);
+  ssize_t result = __libc_send (fd, buf, n, flags);
 
   CANCEL_RESET (oldtype);