summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watch
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-09-19 13:48:45 +0000
committerru <ru@FreeBSD.org>2005-09-19 13:48:45 +0000
commitdb795b2c7606fa5ffdcc900c11384e51ad99d8b1 (patch)
tree8062ddf49e66f6cc93932a7d6e93c8b57aadfe32 /usr.sbin/watch
parentc235110658b82d3add6a0ea46c53b60a0b73d467 (diff)
downloadFreeBSD-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/watch')
-rw-r--r--usr.sbin/watch/watch.c6
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
OpenPOWER on IntegriCloud