jfclere 2003/09/26 10:06:58
Modified: daemon/src/native/unix/native jsvc-unix.c
Log:
make sure the debug output does not end in /dev/null...
Revision Changes Path
1.4 +5 -1 jakarta-commons/daemon/src/native/unix/native/jsvc-unix.c
Index: jsvc-unix.c
===================================================================
RCS file: /home/cvs/jakarta-commons/daemon/src/native/unix/native/jsvc-unix.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- jsvc-unix.c 25 Sep 2003 13:35:44 -0000 1.3
+++ jsvc-unix.c 26 Sep 2003 17:06:58 -0000 1.4
@@ -374,6 +374,10 @@
static void set_output(char *outfile, char *errfile) {
freopen("/dev/null", "r", stdin);
+ /* make sure the debug goes out */
+ if (log_debug_flag==true)
+ return;
+
/* Handle malicious case here */
if(strcmp(outfile, "&2") == 0 && strcmp(errfile,"&1") == 0) {
outfile="/dev/null";
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]