1999-03-02
1999-03-02 20:15:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
ef08bae02febdcbd092c7e43548e302f22072f44
(11 lines)
(+6/-5)
[
Show
| Annotate
]
Branch: 5.2
Bugfix in shutdown code.
Rev: server/base_server/roxen.pike:1.259
1:
/*
- * $Id: roxen.pike,v 1.258 1999/03/01 17:03:14 marcus Exp $
+ * $Id: roxen.pike,v 1.259 1999/03/02 20:15:26 grubba Exp $
*
* The Roxen Challenger main program.
*
7:
*/
// ABS and suicide systems contributed freely by Francesco Chemolli
- constant cvs_version="$Id: roxen.pike,v 1.258 1999/03/01 17:03:14 marcus Exp $";
+ constant cvs_version="$Id: roxen.pike,v 1.259 1999/03/02 20:15:26 grubba Exp $";
// Some headerfiles
#define IN_ROXEN
174:
#endif /* THREADS */
// Don't use fork() with threaded servers.
- #if constant(fork) && !defined(THREADS)
+ #if constant(fork) && !constant(create_thread)
// Fork, and then do a 'slow-quit' in the forked copy. Exit the
// original copy, after all listen ports are closed.
199: Inside #if constant(fork) && !defined(THREADS)
array f=indices(portno);
for(int i=0; i<sizeof(f); i++)
catch(destruct(f[i]));
- #else /* !constant(fork) || defined(THREADS) */
+ #else /* !constant(fork) || constant(create_thread) */
// FIXME:
// Should probably attempt something similar to the above,
208:
exit(exit_code); // Now we die...
- #endif /* constant(fork) && !defined(THREADS) */
+ #endif /* constant(fork) && !constant(create_thread) */
}
// Shutdown Roxen