From owner-freebsd-current Mon Jun 17 10:00:34 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA13475 for current-outgoing; Mon, 17 Jun 1996 10:00:34 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA13470 for ; Mon, 17 Jun 1996 10:00:31 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id CAA10807; Tue, 18 Jun 1996 02:41:58 +1000 Date: Tue, 18 Jun 1996 02:41:58 +1000 From: Bruce Evans Message-Id: <199606171641.CAA10807@godzilla.zeta.org.au> To: fcurrent@jraynard.demon.co.uk, wollman@lcs.mit.edu Subject: Re: ktrace [Was: 2.2-960612-SNAP resolver problems] Cc: bde@zeta.org.au, freebsd-current@freebsd.org, j@uriah.heep.sax.de, nate@sri.MT.net Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >1) The ktrace(2) system call takes a filename as its argument, not a >descriptor. I tried `mkfifo p; ktrace -f p ls'. This hung in open() until p was opened for reading by another process. Then the ktrace() syscall returned EPERM and ktrace(8) printed a garbage message (error() is miscalled with 0 args when ktrace() fails). This ktrace() error wouldn't be handled be either SIGSYS or James' checking for ENOSYS. I doubt that the kernel writes for ktrace() would work for either named or nameless pipes. They don't quite work for ufs either. Bruce