commit | 4e9ca75281a25dcdbb3e2d2fa79108b02afa43db | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Mon Jan 07 15:58:02 2008 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Mon Jan 07 15:58:02 2008 +0000 |
tree | 82719bae160c22a5963b615cc3e9971702271de8 | |
parent | bcd5fc12ec4d31f7633460cb66c2e8a5436ace18 [diff] [blame] |
syslogd: fix shmat error check
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index f8e8488..345bf0e 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c
@@ -218,7 +218,7 @@ } G.shbuf = shmat(G.shmid, NULL, 0); - if (!G.shbuf) { + if (G.shbuf == (void*) -1L) { /* shmat has bizarre error return */ bb_perror_msg_and_die("shmat"); }