diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-11-29 16:51:30 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-11-29 16:51:30 -0500 |
commit | 428e152be6bb0fd3867e41cee82a6d5968a11a26 (patch) | |
tree | e43d217c10c052704f872cd7e1df4d335c12d376 /rts/posix/Signals.c | |
parent | 56d74515396c8b6360ba7898cbc4b68f0f1fb2ea (diff) | |
download | haskell-428e152be6bb0fd3867e41cee82a6d5968a11a26.tar.gz |
Use C99's bool
Test Plan: Validate on lots of platforms
Reviewers: erikd, simonmar, austin
Reviewed By: erikd, simonmar
Subscribers: michalt, thomie
Differential Revision: https://phabricator.haskell.org/D2699
Diffstat (limited to 'rts/posix/Signals.c')
-rw-r--r-- | rts/posix/Signals.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rts/posix/Signals.c b/rts/posix/Signals.c index 97439c5120..80909f113f 100644 --- a/rts/posix/Signals.c +++ b/rts/posix/Signals.c @@ -331,7 +331,7 @@ unblockUserSignals(void) sigprocmask(SIG_SETMASK, &savedSignals, NULL); } -rtsBool +bool anyUserHandlers(void) { return n_haskell_handlers != 0; @@ -585,7 +585,7 @@ empty_handler (int sig STG_UNUSED) -------------------------------------------------------------------------- */ static void sigtstp_handler(int sig); -static void set_sigtstp_action (rtsBool handle); +static void set_sigtstp_action (bool handle); static void sigtstp_handler (int sig STG_UNUSED) @@ -612,7 +612,7 @@ sigtstp_handler (int sig STG_UNUSED) } static void -set_sigtstp_action (rtsBool handle) +set_sigtstp_action (bool handle) { struct sigaction sa; if (handle) { @@ -728,7 +728,7 @@ initDefaultHandlers(void) sysErrorBelch("warning: failed to install SIGUSR2 handler"); } - set_sigtstp_action(rtsTrue); + set_sigtstp_action(true); } void @@ -749,7 +749,7 @@ resetDefaultHandlers(void) sysErrorBelch("warning: failed to uninstall SIGPIPE handler"); } - set_sigtstp_action(rtsFalse); + set_sigtstp_action(false); } #endif /* RTS_USER_SIGNALS */ |