X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=mon%2Fmons.c;fp=mon%2Fmons.c;h=cebe329b35491abbb9f47e918cdafc7f57d62418;hp=b0a04003bed9ac71b0b8316d6200d52e15805547;hb=a0640fbfff65d0f9327f6e6bfadf40655f048136;hpb=09c39eeca9a525447435d3e1766a7350c730f0f8 diff --git a/mon/mons.c b/mon/mons.c index b0a0400..cebe329 100644 --- a/mon/mons.c +++ b/mon/mons.c @@ -255,7 +255,11 @@ int mons_accept(MONS_INSTANCE *mons, int listen) break; } close(conn); - exit(0); /* exit to kill forked child process */ + + /* This ought to be an exit(0), but log4shib does not play well with our (mis)use of threads and + * fork() in the main process. Until we sort that out, we abort() to force termination of this + * process. */ + abort(); /* exit hard */ } /* Only the parent process gets here */