aboutsummaryrefslogtreecommitdiff
path: root/nptl/pt-wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pt-wait.c')
-rw-r--r--nptl/pt-wait.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nptl/pt-wait.c b/nptl/pt-wait.c
index 951bba6b44..fa25f21343 100644
--- a/nptl/pt-wait.c
+++ b/nptl/pt-wait.c
@@ -27,12 +27,9 @@
pid_t
__wait (__WAIT_STATUS_DEFN stat_loc)
{
- int oldtype;
- pid_t result;
+ int oldtype = CANCEL_ASYNC ();
- CANCEL_ASYNC (oldtype);
-
- result = __libc_wait (stat_loc);
+ pid_t result = __libc_wait (stat_loc);
CANCEL_RESET (oldtype);