… | … | ||
---|---|---|---|
1267 | 1267 | ||
1268 | void | 1268 | void |
1269 | rec_sighup (int i) | 1269 | rec_sighup (int i) |
1270 | { | 1270 | { |
1271 | LOG (llevInfo, "\nSIGHUP received\n"); | 1271 | LOG (llevInfo, "\nSIGHUP received\n"); |
1272 | |||
1272 | if (init_done) | 1273 | if (init_done) |
1273 | { | ||
1274 | emergency_save (0); | ||
1275 | cleanup (); | 1274 | cleanup (); |
1276 | } | 1275 | |
1277 | exit (0); | 1276 | exit (0); |
1278 | } | 1277 | } |
1279 | 1278 | ||
1280 | void | 1279 | void |
1281 | rec_sigquit (int i) | 1280 | rec_sigquit (int i) |
… | … | ||
1302 | 1301 | ||
1303 | void | 1302 | void |
1304 | fatal_signal (int make_core, int close_sockets) | 1303 | fatal_signal (int make_core, int close_sockets) |
1305 | { | 1304 | { |
1306 | if (init_done) | 1305 | if (init_done) |
1307 | { | ||
1308 | cleanup (); | 1306 | cleanup (); |
1309 | //emergency_save (0); | ||
1310 | //clean_tmp_files (); | 1307 | //clean_tmp_files (); |
1311 | } | ||
1312 | 1308 | ||
1313 | if (make_core) | 1309 | if (make_core) |
1314 | abort (); | 1310 | abort (); |
1315 | 1311 | ||
1316 | exit (0); | 1312 | exit (0); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |