From owner-freebsd-questions Tue Feb 14 10:03:19 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id KAA04511 for questions-outgoing; Tue, 14 Feb 1995 10:03:19 -0800 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id KAA04505 for ; Tue, 14 Feb 1995 10:03:18 -0800 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA20975; Tue, 14 Feb 95 10:55:42 MST From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9502141755.AA20975@cs.weber.edu> Subject: Re: HELP To: vlado@ulcc.uni-plovdiv.bg (...) Date: Tue, 14 Feb 95 10:55:41 MST Cc: questions@FreeBSD.org In-Reply-To: <199502150327.TAA00320@ulcc.uni-plovdiv.bg> from "..." at Feb 14, 95 07:27:01 pm X-Mailer: ELM [version 2.4dev PL52] Sender: questions-owner@FreeBSD.org Precedence: bulk > I have NetBSD 0.9, and I want when CD of my DIAL-IN modem lowers > system to kill all process which user has started. Please tell me how > to do that. This probably should have been sent to the NetBSD questions list instead of the FreeBSD questions list. Assuming the serail drivers aren't too different, you probably have DCD forced true in your modem and you need to reconfigure it. You also might have DCD forced true in the cable. The other possiblity is that you do not have modem control turned on on the device. You will need to consult the NetBSD sio man page on how to deal with this in NetBSD. In a correctly operating setup, the DCD on the modem follows remote carrier so that the modem will not assert DCD on the serial interface unless carrier is present. A modem-control device is used so that the system does not ignore the DCD being asserted by the serial interface. The default behaviour for a modem control device is to default with -CLOCAL and HUPCL set on the device. If you can log in, make sure these are present (type 'stty -a') after dialing in and logging in). When DCD drops, SIGHUP is sent to all members of the process group, which causes them to exit. The last close on the port drops DTR. The modem must be set to reset when DTR drops from the computer. Then the getty comes back up and trys an open, which asserts DTR which allows the modem to answer the phone. Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.