diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1998-10-16 14:14:43 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1998-10-16 14:14:43 +0000 |
commit | 3ab547365e08d79b236c282459c248a0dcfb07c2 (patch) | |
tree | 8d24cb17e9f16504806753b3847d3f08f2ad7ea8 /usr.sbin/screenblank/screenblank.c | |
parent | 3e487bbb64a26c8a6ede7c7501219f21791e7b9f (diff) |
Die quietly if the open fails with ENXIO
Diffstat (limited to 'usr.sbin/screenblank/screenblank.c')
-rw-r--r-- | usr.sbin/screenblank/screenblank.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/screenblank/screenblank.c b/usr.sbin/screenblank/screenblank.c index fdf633ce8bc..4032608c2f6 100644 --- a/usr.sbin/screenblank/screenblank.c +++ b/usr.sbin/screenblank/screenblank.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screenblank.c,v 1.5 1998/06/03 17:00:09 deraadt Exp $ */ +/* $OpenBSD: screenblank.c,v 1.6 1998/10/16 14:14:42 jason Exp $ */ /* $NetBSD: screenblank.c,v 1.2 1996/02/28 01:18:34 thorpej Exp $ */ /*- @@ -265,6 +265,8 @@ change_state(state) if (dsp->ds_isfb == 0) continue; if ((fd = open(dsp->ds_path, O_RDWR, 0)) < 0) { + if (errno == ENXIO) + exit(1); warn("open: %s", dsp->ds_path); continue; } |