aboutsummaryrefslogtreecommitdiffhomepage
path: root/signal.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-14 21:40:33 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-14 21:40:33 +1000
commit0ebf6db4b972648ff5a2bed41120bff7b681ea37 (patch)
treef33c14837e2aa75056cf8e1dccb03b6432a43a1b /signal.h
parentf321855c0293ec56c9f61c163bd1ac8927aabd1b (diff)
Increase fish robustness by improving signal handling when forking jobs and minor signal handling improvements
darcs-hash:20051014114033-ac50b-8d0f6274ac590f1b6dbe82c55366f44ed7debf20.gz
Diffstat (limited to 'signal.h')
-rw-r--r--signal.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/signal.h b/signal.h
index ef491a14..d7878ae1 100644
--- a/signal.h
+++ b/signal.h
@@ -31,6 +31,19 @@ void signal_reset_handlers();
void signal_set_handlers();
/**
- Tell fish to catch the specified signal and fire an event, instead of performing the default action
+ Tell fish what to do on the specified signal.
+
+ \param sig The signal to specify the action of
+ \param do_handle If true fish will catch the specified signal and fire an event, otherwise the default action (SIG_DFL) will be set
*/
void signal_handle( int sig, int do_handle );
+
+/*
+ Block all signals
+*/
+void signal_block();
+
+/**
+ Unblock all signals
+*/
+void signal_unblock();