diff options
author | obrien <obrien@FreeBSD.org> | 2008-12-19 20:20:14 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2008-12-19 20:20:14 +0000 |
commit | 9cb8693afe328ae55dc576c27633f512b5da9020 (patch) | |
tree | 9781a965909e7361155101b3e8909cb9a0bb6076 /usr.sbin/burncd/Makefile | |
parent | 04b1d503e162172ac1f99cab401b24577008d8a5 (diff) | |
download | FreeBSD-src-9cb8693afe328ae55dc576c27633f512b5da9020.zip FreeBSD-src-9cb8693afe328ae55dc576c27633f512b5da9020.tar.gz |
burncd(8) doesn't handle signals and interrupting burncd during operation.
For example, ^C (SIGINT) may leave the drive spinning and locked.
This may also happen if you try to write a too-large image to a disc
and burncd(8) exits with an I/O error.
Add signal handling by doing a CDRIOCFLUSH ioctl to attempt to leave
burner in a sane state when burning is interrupted with SIGHUP, SIGINT,
SIGTERM, or in case an I/O error occurs during write.
Note, that blanking will still continue after interrupt but it seems to
finish correctly even after burncd(8) has quit.
Also, while I'm here bump WARNS to "6".
PR: 48730
Submitted by: Jaakko Heinonen <jh@saunalahti.fi>
Diffstat (limited to 'usr.sbin/burncd/Makefile')
-rw-r--r-- | usr.sbin/burncd/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/burncd/Makefile b/usr.sbin/burncd/Makefile index 6f03273..bd4f285 100644 --- a/usr.sbin/burncd/Makefile +++ b/usr.sbin/burncd/Makefile @@ -3,6 +3,6 @@ PROG= burncd MAN= burncd.8 -WARNS?= 5 +WARNS?= 6 .include <bsd.prog.mk> |