[BusyBox] httpd foreground option
Vladimir N. Oleynik
dzo at simtreas.ru
Fri Dec 17 11:53:39 UTC 2004
jean-marc.morin3,
> I love to get my daemon running through the inittab, since they get respawn
> in case of failure and I consider such behavior as optimum in term of
> stability.
Hmm.
> @@ -256,6 +256,7 @@
> #define a_c_r config->accepted_socket
> #define a_c_w config->accepted_socket
> int debugHttpd; /* if seted, don`t stay daemon */
> + int foreground; /* if seted, don`t go daemon */
...
> + config->foreground = opt & OPT_FOREGROUND;
Its not require.
> - if (!config->debugHttpd) {
> + if (!(config->debugHttpd || config->foreground)) {
trivial change:
if (!(config->debugHttpd || (opt & OPT_FOREGROUND))) {
--w
vodz
More information about the busybox
mailing list