From owner-freebsd-bugs Sun Dec 14 16:30:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA26802 for bugs-outgoing; Sun, 14 Dec 1997 16:30:09 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA26779; Sun, 14 Dec 1997 16:30:03 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 14 Dec 1997 16:30:03 -0800 (PST) Resent-Message-Id: <199712150030.QAA26779@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, rhh@ct.picker.com Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id QAA26306 for ; Sun, 14 Dec 1997 16:25:50 -0800 (PST) (envelope-from rhh@ct.picker.com) Received: from ct.picker.com by whqvax.picker.com with SMTP; Sun, 14 Dec 1997 19:25:19 -0500 (EST) Received: from stealth.ct.picker.com (eagle.ct.picker.com) by ct.picker.com (4.1/SMI-4.1) id AA02543; Sun, 14 Dec 97 19:25:16 EST Received: (from rhh@localhost) by stealth.ct.picker.com (8.8.8/8.8.8) id TAA16235; Sun, 14 Dec 1997 19:26:16 GMT (envelope-from rhh) Message-Id: <199712141926.TAA16235@stealth.ct.picker.com> Date: Sun, 14 Dec 1997 19:26:16 GMT From: rhh@ct.picker.com Reply-To: rhh@ct.picker.com To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: rhh@ct.picker.com X-Send-Pr-Version: 3.2 Subject: bin/5296: slattach fails creating pidfile with ioctl(TIOCSCTTY): Operation not permitted Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 5296 >Category: bin >Synopsis: slattach fails creating pidfile with ioctl(TIOCSCTTY): Operation not permitted >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 14 16:30:01 PST 1997 >Last-Modified: >Originator: Randall Hopper >Organization: self >Release: FreeBSD 3.0-971208-SNAP i386 >Environment: Straight 3.0-971208 installation with stock slattach. >Description: If I run my SLIP script (which invokes slattach) from inside an xterm, it works fine (doesn't log errors in /var/log/messages, and does correctly create the var/run/slattach.cuaa1.pid pidfile. However, if I run my SLIP script from my window manager menus (i.e. not inside a vtty), then slattach logs the following error in /var/log/messages: slattach[15882]: ioctl(TIOCSCTTY): Operation not permitted and does not create a /var/run pidfile. 3.0-current slattach otherwise appears to work; it just doesn't create the pidfile that I use in other scripts & cron jobs. >How-To-Repeat: Here is a clip from my "slip-on" script that shows how I invoke slattach (error checking removed for simplicity): #!/bin/sh ... exec 0< /dev/cuaa1 exec 1> /dev/cuaa1 chat TIMEOUT 2 "" AT OK AT OK chat "" "$INITSTRING" "OK" "AT$DIALSTRING" ... slattach -h -c -s 57600 /dev/cuaa1 > /dev/null 2>&1 & >Fix: Not known. >Audit-Trail: >Unformatted: