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

Comparing deliantra/server/common/utils.C (file contents):
Revision 1.37 by root, Mon Jan 15 02:39:40 2007 UTC vs.
Revision 1.38 by root, Mon Jan 15 02:42:15 2007 UTC

552///////////////////////////////////////////////////////////////////////////// 552/////////////////////////////////////////////////////////////////////////////
553 553
554void 554void
555fork_abort (const char *msg) 555fork_abort (const char *msg)
556{ 556{
557 LOG (llevError, "fork abort: %s\n", msg);
558 if (!fork ()) 557 if (!fork ())
559 { 558 {
560 signal (SIGABRT, SIG_DFL); 559 signal (SIGABRT, SIG_DFL);
561 abort (); 560 abort ();
562 } 561 }
563 562
563 LOG (llevError, "fork abort: %s\n", msg);
564} 564}
565
565void *salloc_ (int n) throw (std::bad_alloc) 566void *salloc_ (int n) throw (std::bad_alloc)
566{ 567{
567 void *ptr = g_slice_alloc (n); 568 void *ptr = g_slice_alloc (n);
568 569
569 if (!ptr) 570 if (!ptr)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines