comparison rogue4/mach_dep.c @ 23:107a467612fb

rogue4: prevent segfault on getpwuid failure
author edwarj4
date Tue, 24 Nov 2009 12:53:15 +0000
parents 63b9fd7d70ce
children ea7372f5d314
comparison
equal deleted inserted replaced
22:63dcd855bc8e 23:107a467612fb
118 #endif 118 #endif
119 signal(SIGFPE, auto_save); 119 signal(SIGFPE, auto_save);
120 #ifdef SIGBUS 120 #ifdef SIGBUS
121 signal(SIGBUS, auto_save); 121 signal(SIGBUS, auto_save);
122 #endif 122 #endif
123 signal(SIGSEGV, auto_save); 123 /* Don't bother saving a game that segfaulted. */
124 signal(SIGSEGV, SIG_DFL);
124 #ifdef SIGSYS 125 #ifdef SIGSYS
125 signal(SIGSYS, auto_save); 126 signal(SIGSYS, auto_save);
126 #endif 127 #endif
127 signal(SIGTERM, auto_save); 128 signal(SIGTERM, auto_save);
128 #endif 129 #endif