From d533bbb2258a1cb094eb950ff25ee985d5f11715 Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 8 Jul 2005 19:23:33 +0000 Subject: 2005-07-08 Martin Hunt * librelay.c (sigchld): Signal handler to detect completion of module loading. (init_stp): Use fork/exec instead of system() so we can get async signal of module load success/failure. (cleanup_and_exit): New function. (sigproc): If module is not loaded, don't send message to it. (stp_main_loop): Call cleanup_and_exit() when STP_EXIT is received. Don't send a request for the transport mode. The module will send notification to the daemon when it is ready. * stpd.c (main): Don't print message until module is loaded. --- runtime/stpd/stpd.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'runtime/stpd/stpd.c') diff --git a/runtime/stpd/stpd.c b/runtime/stpd/stpd.c index 8fb1700e..149d43e2 100644 --- a/runtime/stpd/stpd.c +++ b/runtime/stpd/stpd.c @@ -86,11 +86,6 @@ int main(int argc, char **argv) exit(1); } - if (quiet) - printf("Logging... Press Control-C to stop.\n"); - else - printf("Press Control-C to stop.\n"); - if (stp_main_loop()) { printf("Couldn't enter main loop. Exiting.\n"); exit(1); -- cgit