From owner-freebsd-current Fri Aug 21 09:00:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA24928 for freebsd-current-outgoing; Fri, 21 Aug 1998 09:00:09 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from bright.fx.genx.net (bright.fx.genx.net [206.64.4.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA24822 for ; Fri, 21 Aug 1998 08:59:56 -0700 (PDT) (envelope-from bright@www.hotjobs.com) Received: from localhost (bright@localhost) by bright.fx.genx.net (8.9.1/8.8.8) with SMTP id MAA01333 for ; Fri, 21 Aug 1998 12:00:11 -0500 (EST) (envelope-from bright@hotjobs.com) X-Authentication-Warning: bright.fx.genx.net: bright owned process doing -bs Date: Fri, 21 Aug 1998 12:00:10 -0500 (EST) From: Alfred Perlstein X-Sender: bright@bright.fx.genx.net To: current@FreeBSD.ORG Subject: PEBCAK with modunload. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG this might be fixed but i don't want to test it for obvious reasons. if you unload the linux emulator while linux programs are running you will crash your box. (forgot i had x11amp running) a nice thing would be an option to modunload to force an unload so it would work something like this: ~ % modstat Type Id Off Loadaddr Size Info Rev Module Name MISC 0 0 f614c000 0018 f6151000 1 ibcs2_mod EXEC 1 4 f6153000 0008 f6154000 1 ibcs2_coff_mod EXEC 2 5 f6155000 0020 f615c010 1 linux_mod ~ % modunload -i 3 Error: you have linux programs running. Specify -f to force. (list of pids/commands passed back somehow from the lkm) ~ % modunload -f -i 3 Killing all linux programs running. (list of pids follow, then the lkm is unloaded) btw i think PEBCAK = problem between chair and keyboard the reason this would be nice is that you can get "inuse" errors and other lkms can then refuse to unload unless told to forcfully do so. They could then revoke access to files/devices they control for other lkms such as filesystem lkms and device lkms. Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com -- There are operating systems, and then there's FreeBSD. -- http://www.freebsd.org/ 3.0-current To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message