ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/init.C
(Generate patch)

Comparing deliantra/server/server/init.C (file contents):
Revision 1.48 by root, Sat Apr 28 05:55:55 2007 UTC vs.
Revision 1.49 by root, Wed May 2 03:55:41 2007 UTC

1267 sigaltstack (&ss, 0); 1267 sigaltstack (&ss, 0);
1268 1268
1269 struct sigaction sa; 1269 struct sigaction sa;
1270 1270
1271 sigfillset (&sa.sa_mask); 1271 sigfillset (&sa.sa_mask);
1272 sa.sa_flags = SA_ONSTACK | SA_RESTART; 1272 sa.sa_flags = SA_RESTART;
1273 1273
1274 sa.sa_handler = SIG_IGN; sigaction (SIGPIPE, &sa, 0); 1274 sa.sa_handler = SIG_IGN; sigaction (SIGPIPE, &sa, 0);
1275 sa.sa_handler = rec_sigabrt; sigaction (SIGABRT, &sa, 0); 1275 sa.sa_handler = rec_sigabrt; sigaction (SIGABRT, &sa, 0);
1276 sa.sa_handler = rec_sigquit; sigaction (SIGQUIT, &sa, 0); 1276 sa.sa_handler = rec_sigquit; sigaction (SIGQUIT, &sa, 0);
1277 sa.sa_handler = rec_sigbus; sigaction (SIGBUS, &sa, 0);
1278
1279 sa.sa_flags |= SA_ONSTACK;
1277 sa.sa_handler = rec_sigsegv; sigaction (SIGSEGV, &sa, 0); 1280 sa.sa_handler = rec_sigsegv; sigaction (SIGSEGV, &sa, 0);
1278 sa.sa_handler = rec_sigbus; sigaction (SIGBUS, &sa, 0);
1279} 1281}
1280 1282
1281/* init_races() - reads the races file in the lib/ directory, then 1283/* init_races() - reads the races file in the lib/ directory, then
1282 * overwrites old 'race' entries. This routine allow us to quickly 1284 * overwrites old 'race' entries. This routine allow us to quickly
1283 * re-configure the 'alignment' of monsters, objects. Useful for 1285 * re-configure the 'alignment' of monsters, objects. Useful for

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines