Patch from Gennady Feldman
authorGlenn L McGrath <bug1@ihug.co.nz>
Tue, 26 Jun 2001 01:41:59 +0000 (01:41 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Tue, 26 Jun 2001 01:41:59 +0000 (01:41 -0000)
This should fix "circular buffer" error message shown when running "syslogd -C"

sysklogd/syslogd.c
syslogd.c

index 6be51d7dc66642f12cc1d2c974b8f68be53db409..8d8bd1afefae74bc689156e525493fae1c18737b 100644 (file)
@@ -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?");
index 6be51d7dc66642f12cc1d2c974b8f68be53db409..8d8bd1afefae74bc689156e525493fae1c18737b 100644 (file)
--- 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?");