diff options
author | ru <ru@FreeBSD.org> | 2005-09-19 13:48:45 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-09-19 13:48:45 +0000 |
commit | db795b2c7606fa5ffdcc900c11384e51ad99d8b1 (patch) | |
tree | 8062ddf49e66f6cc93932a7d6e93c8b57aadfe32 /usr.sbin | |
parent | c235110658b82d3add6a0ea46c53b60a0b73d467 (diff) | |
download | FreeBSD-src-db795b2c7606fa5ffdcc900c11384e51ad99d8b1.zip FreeBSD-src-db795b2c7606fa5ffdcc900c11384e51ad99d8b1.tar.gz |
Restore the ability to detach from a tty via SIOCSTTY and document
recent changes in a manpage.
Reviewed by: cognet
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/watch/watch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c index a062ae0..11a80af 100644 --- a/usr.sbin/watch/watch.c +++ b/usr.sbin/watch/watch.c @@ -218,10 +218,10 @@ setup_scr(void) static void detach_snp(void) { - dev_t dev; + int fd; - dev = NODEV; - ioctl(snp_io, SNPSTTY, &dev); + fd = -1; + ioctl(snp_io, SNPSTTY, &fd); } static void |