diff options
Diffstat (limited to 'src/subprocess.h')
-rw-r--r-- | src/subprocess.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/subprocess.h b/src/subprocess.h index daeeef6..a001fc9 100644 --- a/src/subprocess.h +++ b/src/subprocess.h @@ -89,7 +89,12 @@ struct SubprocessSet { static HANDLE ioport_; #else static void SetInterruptedFlag(int signum); - static bool interrupted_; + static void HandlePendingInterruption(); + /// Store the signal number that causes the interruption. + /// 0 if not interruption. + static int interrupted_; + + static bool IsInterrupted() { return interrupted_ != 0; } struct sigaction old_int_act_; struct sigaction old_term_act_; |