OSSP CVS Repository

ossp - Check-in [3590]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3590
Date: 2003-Sep-10 15:02:17 (local)
2003-Sep-10 13:02:17 (UTC)
User:rse
Branch:
Comment: make sure we do atomic downstream writes for now
Tickets:
Inspections:
Files:
ossp-pkg/l2/l2_ch_prefix.c      1.23 -> 1.24     2 inserted, 0 deleted

ossp-pkg/l2/l2_ch_prefix.c 1.23 -> 1.24

--- l2_ch_prefix.c       2003/01/06 11:41:51     1.23
+++ l2_ch_prefix.c       2003/09/10 13:02:17     1.24
@@ -172,10 +172,12 @@
             return L2_ERR_ARG;
         if ((n = strftime(buf2, sizeof(buf2), buf1, tm)) == 0)
             return L2_ERR_SYS;
+        n += l2_ut_sprintf(buf2+n, sizeof(buf2)-n, "%s", buf);
         downstream = NULL;
         while ((rv = l2_channel_downstream(ch, &downstream)) == L2_OK)
             if ((rv = l2_channel_write(downstream, level, buf2, n)) != L2_OK)
                 return rv;
+        return L2_OK;
     }
 
     return L2_OK_PASS;

CVSTrac 2.0.1