From 8140a0fdec3e8c131bdc1007d856acb8ae758abc Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 24 Aug 2005 16:27:35 +0000 Subject: 2005-08-24 Martin Hunt * librelay.c (sigproc): Reestablish signal handler so impatient people don't hit ^C twice and terminate the program before it saves the data and removes the module. Also print a message to stderr that it is exiting. (stp_main_loop): Write OOB data (warnings, errors, etc) to stderr instead of stdout. * librelay.h: Write debug info to stderr. * Makefile: add librelay.h to dependencies. --- runtime/stpd/librelay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/stpd/librelay.h') diff --git a/runtime/stpd/librelay.h b/runtime/stpd/librelay.h index 71150858..289952d7 100644 --- a/runtime/stpd/librelay.h +++ b/runtime/stpd/librelay.h @@ -1,7 +1,7 @@ #include "../transport/transport_msgs.h" #ifdef DEBUG -#define dbug(args...) {printf("%s:%d ",__FUNCTION__, __LINE__); printf(args); } +#define dbug(args...) {fprintf(stderr,"%s:%d ",__FUNCTION__, __LINE__); fprintf(stderr,args); } #else #define dbug(args...) ; #endif /* DEBUG */ -- cgit