From 6ed0b39d28f63631f0e6dc1f26b84ec0d8b1d5b4 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 19 Sep 2005 13:48:45 +0000 Subject: Restore the ability to detach from a tty via SIOCSTTY and document recent changes in a manpage. Reviewed by: cognet --- usr.sbin/watch/watch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/watch') diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c index a062ae02d67a..11a80af0416a 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 -- cgit v1.2.3