mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
syslogd: fix shmat error check
This commit is contained in:
parent
bcd5fc12ec
commit
4e9ca75281
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ static void ipcsyslog_init(void)
|
|||
}
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue