Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 May 1997 03:15:05 -0700 (PDT)
From:      hafner@forwiss.tu-muenchen.de
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/3514: /usr/sbin/watch in 2.2.1 RELEASE seems broken
Message-ID:  <199705061015.DAA02773@hub.freebsd.org>
Resent-Message-ID: <199705061020.DAA02901@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May  6 03:20:01 PDT 1997
>Last-Modified:
>Originator:     Walter Hafner
>Organization:
FORWISS
>Release:        2.2.1 RELEASE
>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:

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705061015.DAA02773>