OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_test.c versions 1.25 and 1.26
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_test.c 1.25 -> 1.26

--- l2_test.c    2001/09/18 14:41:28     1.25
+++ l2_test.c    2001/09/19 16:39:44     1.26
@@ -131,13 +131,18 @@
 
     if (l2_stream_channel(st, chSyslog, L2_LEVEL_UPTO(L2_LEVEL_WARNING), L2_LEVEL_NONE) != L2_OK)
         die("failed to attach channel syslog into stream");
-#endif
+#endif /* Syslog */
 
 #ifdef WITH_PIPE
     if ((chPipe = l2_channel_create(&l2_handler_pipe)) == NULL)      /* Pipe */
         die("failed to create pipe channel");
 
-    if (l2_channel_configure(chPipe, "pipe", pipdesc[1]) != L2_OK)
+#if 0
+    if (l2_channel_configure(chPipe, "mode,path", "direct", "/u/ms/travail/cronolinux/sbin/cronolog -o /u/ms/tmp/crono.log") != L2_OK)
+        die("failed to configure pipe channel");
+#endif
+
+    if (l2_channel_configure(chPipe, "mode,path", "shell", "$CRONOLOGDIR/cronolog -o $HOME/tmp/crono.log") != L2_OK)
         die("failed to configure pipe channel");
 
     if (l2_channel_open(chPipe) != L2_OK)
@@ -145,7 +150,7 @@
 
     if (l2_stream_channel(st, chPipe, L2_LEVEL_UPTO(L2_LEVEL_WARNING), L2_LEVEL_NONE) != L2_OK)
         die("failed to attach channel pipe into stream");
-#endif
+#endif /* Pipe */
 
 #ifdef WITH_SOCKET
     /* Atenzione! Before doing any socket testing, make sure you have a valid */
@@ -167,7 +172,7 @@
 
     if (l2_stream_channel(st, chSock, L2_LEVEL_UPTO(L2_LEVEL_WARNING), L2_LEVEL_NONE) != L2_OK)
         die("failed to attach channel socket into stream");
-#endif
+#endif /* Socket */
 
 #ifdef WITH_SMTP
     if ((chSmtp = l2_channel_create(&l2_handler_smtp)) == NULL)      /* SMTP */
@@ -181,7 +186,7 @@
 
     if (l2_stream_channel(st, chSmtp, L2_LEVEL_UPTO(L2_LEVEL_ERROR), L2_LEVEL_NONE) != L2_OK)
         die("failed to attach smtp channel into stream");
-#endif
+#endif /* SMTP */
 
     if (l2_stream_levels(st, L2_LEVEL_UPTO(L2_LEVEL_WARNING), L2_LEVEL_NONE) != L2_OK)
         die("failed to set global logging level");

CVSTrac 2.0.1