From: Glenn L McGrath Date: Tue, 26 Jun 2001 01:41:59 +0000 (-0000) Subject: Patch from Gennady Feldman X-Git-Tag: 0_52~63 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=addabd6f16aece578d94d810d3a9e9dc88f2cdb7;p=oweals%2Fbusybox.git Patch from Gennady Feldman This should fix "circular buffer" error message shown when running "syslogd -C" --- diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 6be51d7dc..8d8bd1afe 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -155,8 +155,6 @@ void ipcsyslog_init(void){ perror_msg_and_die("semget"); }else perror_msg_and_die("semget"); - } else { - sem_up(s_semid); } }else{ printf("Buffer already allocated just grab the semaphore?"); diff --git a/syslogd.c b/syslogd.c index 6be51d7dc..8d8bd1afe 100644 --- a/syslogd.c +++ b/syslogd.c @@ -155,8 +155,6 @@ void ipcsyslog_init(void){ perror_msg_and_die("semget"); }else perror_msg_and_die("semget"); - } else { - sem_up(s_semid); } }else{ printf("Buffer already allocated just grab the semaphore?");