summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-12-01 15:04:36 +0000
committersin <sin@2f30.org>2014-12-01 15:04:36 +0000
commit9046382217acceb141e6199fd3a35c8721dbe9fc (patch)
treee94f74ea10dba58a87b89ecc951aacaa1b6b6a9b
parent3f75a2eadf90f67583bd3270823e62c5fccc403a (diff)
Save data file on receipt of a deadly signal
-rw-r--r--ratox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ratox.c b/ratox.c
index fa78f13..db8f06d 100644
--- a/ratox.c
+++ b/ratox.c
@@ -1959,6 +1959,8 @@ shutdown(void)
if (idfd != -1)
close(idfd);
+ datasave();
+
toxav_kill(toxav);
tox_kill(tox);
}