Commit b4c4b927 authored by Mike Hibler's avatar Mike Hibler
Browse files

Restore the signal mask before jumping to the disconected label.

parent 1d214d4e
/* /*
* EMULAB-COPYRIGHT * EMULAB-COPYRIGHT
* Copyright (c) 2000-2007 University of Utah and the Flux Group. * Copyright (c) 2000-2008 University of Utah and the Flux Group.
* All rights reserved. * All rights reserved.
*/ */
...@@ -852,6 +852,7 @@ capture(void) ...@@ -852,6 +852,7 @@ capture(void)
} }
if (i == 0) { if (i == 0) {
#ifdef USESOCKETS #ifdef USESOCKETS
sigprocmask(SIG_SETMASK, &omask, NULL);
goto disconnected; goto disconnected;
#else #else
die("%s: write: zero-length", Ptyname); die("%s: write: zero-length", Ptyname);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment