svn commit: trunk/busybox/sysklogd
vda at busybox.net
vda at busybox.net
Mon Jan 7 15:58:03 UTC 2008
Author: vda
Date: 2008-01-07 07:58:02 -0800 (Mon, 07 Jan 2008)
New Revision: 20807
Log:
syslogd: fix shmat error check
Modified:
trunk/busybox/sysklogd/syslogd.c
Changeset:
Modified: trunk/busybox/sysklogd/syslogd.c
===================================================================
--- trunk/busybox/sysklogd/syslogd.c 2008-01-06 06:27:17 UTC (rev 20806)
+++ trunk/busybox/sysklogd/syslogd.c 2008-01-07 15:58:02 UTC (rev 20807)
@@ -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");
}
More information about the busybox-cvs
mailing list