diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-10-18 00:30:33 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-10-18 00:30:33 +0000 |
commit | 32da9eaf7efebfcdd337405f423d47586a361a81 (patch) | |
tree | d1a4fe129113394ec1f396e1823289420761c267 | |
parent | 978d9b85e2a79582a7587d0496dd5ece45b8902f (diff) |
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); |