1998-05-08
1998-05-08 19:54:45 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
9a05f27620f0b08ecd386291caefeebb80e8fdfc
(8 lines)
(+6/-2)
[
Show
| Annotate
]
Branch: 5.2
Added some paranoia.
Rev: server/base_server/roxen.pike:1.198
1:
- constant cvs_version = "$Id: roxen.pike,v 1.197 1998/05/06 22:16:27 per Exp $";
+ constant cvs_version = "$Id: roxen.pike,v 1.198 1998/05/08 19:54:45 grubba Exp $";
#define IN_ROXEN
#include <roxen.h>
#include <config.h>
96: Inside #if constant(fork) && !defined(THREADS)
#if constant(fork) && !defined(THREADS)
- if(fork())
+ if(fork()) {
+ add_constant("roxen", 0); // Remove some extra refs...
exit(-1); // Restart.
-
+ }
// Now we're running in the forked copy.
// FIXME: This probably doesn't work correctly on threaded servers,
117:
// FIXME:
// Should probably attempt something similar to the above,
// but this should be sufficient for the time being.
+ add_constant("roxen", 0); // Paranoia...
exit(-1); // Restart
#endif /* constant(fork) */