summaryrefslogtreecommitdiffstats
path: root/src/sigs.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-11-29 11:34:00 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-11-29 11:34:00 +0100
commita91fd7264191ed32bbd6e12d250701ac0eb6a0b3 (patch)
tree74b8b3cfc8cb7a84b6bdd61227bfe59ef45a87ab /src/sigs.c
parentdb2df835da9893930a12a62b30e8893599ae540f (diff)
parent8ae75f3ca723d4d7e449c18f1704147b229ac66c (diff)
downloadcalcurse-a91fd7264191ed32bbd6e12d250701ac0eb6a0b3.tar.gz
calcurse-a91fd7264191ed32bbd6e12d250701ac0eb6a0b3.zip
Merge branch 'maint'
Diffstat (limited to 'src/sigs.c')
-rw-r--r--src/sigs.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sigs.c b/src/sigs.c
index 4cc01bf..77ef6b8 100644
--- a/src/sigs.c
+++ b/src/sigs.c
@@ -108,3 +108,17 @@ void sigs_init()
|| !sigs_set_hdlr(SIGINT, SIG_IGN))
exit_calcurse(1);
}
+
+/* Ignore SIGWINCH and SIGTERM signals. */
+void sigs_ignore(void)
+{
+ sigs_set_hdlr(SIGWINCH, SIG_IGN);
+ sigs_set_hdlr(SIGTERM, SIG_IGN);
+}
+
+/* No longer ignore SIGWINCH and SIGTERM signals. */
+void sigs_unignore(void)
+{
+ sigs_set_hdlr(SIGWINCH, generic_hdlr);
+ sigs_set_hdlr(SIGTERM, generic_hdlr);
+}