From nobody  Tue May  6 03:15:05 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.5/8.8.5) id DAA02773;
          Tue, 6 May 1997 03:15:05 -0700 (PDT)
Message-Id: <199705061015.DAA02773@hub.freebsd.org>
Date: Tue, 6 May 1997 03:15:05 -0700 (PDT)
From: hafner@forwiss.tu-muenchen.de
To: freebsd-gnats-submit@freebsd.org
Subject: /usr/sbin/watch in 2.2.1 RELEASE seems broken
X-Send-Pr-Version: www-1.0

>Number:         3514
>Category:       bin
>Synopsis:       /usr/sbin/watch in 2.2.1 RELEASE seems broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May  6 03:20:01 PDT 1997
>Closed-Date:    Wed May 7 01:08:38 PDT 1997
>Last-Modified:  Wed May  7 01:09:00 PDT 1997
>Originator:     Walter Hafner
>Release:        2.2.1 RELEASE
>Organization:
FORWISS
>Environment:
FreeBSD pccog4 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE #0: Wed Apr 23 15:23:06 CEST 1997     root@pccog4.forwiss.tu-muenchen.de:/usr/src/sys/compile/PCCOG4  i386

>Description:
/usr/sbin/watch can't open the snp* devices.

I have 
pseudo-device   snoop   3
in my kernel-config,

I remade the snp* devices via /dev/MAKEDEV snp0 ... snp2

tcsh > ll /dev/snp*
crw-------  1 root  wheel   53,   0 May  6 11:01 /dev/snp0
crw-------  1 root  wheel   53,   1 May  6 11:06 /dev/snp1
crw-------  1 root  wheel   53,   2 May  6 11:06 /dev/snp2


and the error occured. Then I patched the 'watch' command
to give me more output:

open(/dev/snp0, O_RDONLY) failed, errno = 6
open(/dev/snp1, O_RDONLY) failed, errno = 6
open(/dev/snp2, O_RDONLY) failed, errno = 6
open(/dev/snp3, O_RDONLY) failed, errno = 2
open(/dev/snp4, O_RDONLY) failed, errno = 2
open(/dev/snp5, O_RDONLY) failed, errno = 2
open(/dev/snp6, O_RDONLY) failed, errno = 2
open(/dev/snp7, O_RDONLY) failed, errno = 2
open(/dev/snp8, O_RDONLY) failed, errno = 2
open(/dev/snp9, O_RDONLY) failed, errno = 2
Fatal: Cannot open snoop device.

errno 2 is ok: I didn't make the devices. But errno 6
(ENXIO No such device or address) is very strange ...
>How-To-Repeat:
/usr/sbin/watch <any tty>
>Fix:

>Release-Note:
>Audit-Trail:

From: j@uriah.heep.sax.de (J Wunsch)
To: hafner@forwiss.tu-muenchen.de
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/3514: /usr/sbin/watch in 2.2.1 RELEASE seems broken
Date: Tue, 6 May 1997 20:54:36 +0200

 As hafner@forwiss.tu-muenchen.de wrote:
 
 > /usr/sbin/watch can't open the snp* devices.
 > 
 > I have 
 > pseudo-device   snoop   3
 > in my kernel-config,
 
 j@uriah 354% fgrep snoop /sys/conf/files
 kern/tty_snoop.c        optional snp
 j@uriah 355% fgrep snoop /sys/i386/conf/LINT 
 j@uriah 356% fgrep snp /sys/i386/conf/LINT
 pseudo-device   snp     3       #Snoop device - to look at pty/vty/etc..
 
 Any further questions? :-)
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)

From: "Jordan K. Hubbard" <jkh@time.cdrom.com>
To: hafner@forwiss.tu-muenchen.de
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/3514: /usr/sbin/watch in 2.2.1 RELEASE seems broken 
Date: Tue, 06 May 1997 13:29:04 -0700

 > I have 
 > pseudo-device   snoop   3
 > in my kernel-config,
 
 Uh..  But the device is called:
 
 pseudo-device   snp     3       #Snoop device - to look at pty/vty/etc..
 
 (see /sys/i386/conf/LINT)
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Wed May 7 01:08:38 PDT 1997 
State-Changed-Why:  
User signified that this was operator error (and a long day :). 
>Unformatted:
