summaryrefslogtreecommitdiffstats
path: root/src/sighook.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sighook.h')
-rw-r--r--src/sighook.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sighook.h b/src/sighook.h
index 87bba4e..7149229 100644
--- a/src/sighook.h
+++ b/src/sighook.h
@@ -72,4 +72,12 @@ struct sighook *atsigexit(sighook_fn *fn, void *arg);
*/
void sigunhook(struct sighook *hook);
+/**
+ * Restore all signal handlers to their original dispositions (e.g. after fork()).
+ *
+ * @return
+ * 0 on success, -1 on failure.
+ */
+int sigreset(void);
+
#endif // BFS_SIGHOOK_H