From 9046382217acceb141e6199fd3a35c8721dbe9fc Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 1 Dec 2014 15:04:36 +0000 Subject: Save data file on receipt of a deadly signal --- ratox.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- cgit v1.2.3