From owner-freebsd-current@FreeBSD.ORG Tue Apr 3 09:16:43 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 133B916A401 for ; Tue, 3 Apr 2007 09:16:43 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by mx1.freebsd.org (Postfix) with ESMTP id 920D513C458 for ; Tue, 3 Apr 2007 09:16:42 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so1746002wra for ; Tue, 03 Apr 2007 02:16:41 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=MxS4QjbW+p4WqICuUv3yVdu77ZExqucGnEfUizgZJKq7992QK13qgKAaheTMd3pBMb67KqHP1pBMMfWWpeLQtlc3rAo/9rqjm+0KPgXCj58/2WDf7V0qLR/EILjydfjSOwdtNl133uuHN2rDsGU+6mW5lEgQxbotek6uEFWSFBM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=c58RGE2ERgyfxrjuLs1Xwy31/tq6wTZ4OP4x6SzNVsrJvH9SPbdm0kRn5sg2xtLxigscRQYZa9IlVeUFtx2ojF6V5jhjiqN2yXpONVzQsDgDMOzShBn4BNLnH6VQYo4QaEDEgSmpE5TJNEHQUEuYBHpKT4rIUqBTRhzB9TcLYSk= Received: by 10.114.52.1 with SMTP id z1mr2144544waz.1175591801329; Tue, 03 Apr 2007 02:16:41 -0700 (PDT) Received: by 10.114.201.2 with HTTP; Tue, 3 Apr 2007 02:16:41 -0700 (PDT) Message-ID: Date: Tue, 3 Apr 2007 13:16:41 +0400 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "FreeBSD Current" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 91ef71ebdbd3a5a3 Cc: Subject: Surviving /dev/null disappearance X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 09:16:43 -0000 While porting mtpaint I stumbled upon a hacked up configure script which has a test like this: ld -o /dev/null If you run this under root the net result is you don't have /dev/null anymore. I fixed the configure script, writing to temp files instead of /dev/null, but the question is, how can I survive the situation. Without /dev/null very little works. You can mount a second devfs over the first one, but half of the programs running in the background (e.g. wmii) are still freaked out bad. So is there a way to revive the system without a reboot? (hint: /etc/rc.d/dev* scripts refuse to work without /dev/null)