diff options
author | 2007-10-18 00:30:32 +0000 | |
---|---|---|
committer | 2007-10-18 00:30:32 +0000 | |
commit | 8b791dc9117a6d9b6f1be2514bf9b4790cfe99a4 (patch) | |
tree | 89f4112525e4de652cbed15e4d44a6e1ffe1d69b | |
parent | Add the Intel ICH9 chipset. (diff) | |
download | wireguard-openbsd-8b791dc9117a6d9b6f1be2514bf9b4790cfe99a4.tar.xz wireguard-openbsd-8b791dc9117a6d9b6f1be2514bf9b4790cfe99a4.zip |
SIGCHLD is not an errno value.
Spotted by deraadt.
-rw-r--r-- | sbin/scsi/scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c index 1b9ec4c1131..9c2bba0e106 100644 --- a/sbin/scsi/scsi.c +++ b/sbin/scsi/scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi.c,v 1.24 2007/04/28 01:06:18 ray Exp $ */ +/* $OpenBSD: scsi.c,v 1.25 2007/10/18 00:30:32 ray Exp $ */ /* $FreeBSD: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */ /* @@ -769,7 +769,7 @@ mode_edit(int fd, int page, int edit, int argc, char *argv[]) fmt, edit_report, 0); fclose(edit_file); - if (editit(edit_name) == -1 && errno != SIGCHLD) + if (editit(edit_name) == -1 && errno != ECHILD) err(1, "edit %s", edit_name); if ((edit_file = fopen(edit_name, "r")) == NULL) err(1, "open %s", edit_name); |