Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Apr 2007 09:44:37 -0700
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Andrew Pantyukhin <infofarmer@FreeBSD.org>
Cc:        FreeBSD Current <current@FreeBSD.org>
Subject:   Re: Surviving /dev/null disappearance
Message-ID:  <46128475.9060602@FreeBSD.org>
In-Reply-To: <cb5206420704030216r44243573h7981c1e35ef7225@mail.gmail.com>
References:  <cb5206420704030216r44243573h7981c1e35ef7225@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Patch ld(1) to detect the condition and don't unlink the device node?

-Maxim

Andrew Pantyukhin wrote:
> While porting mtpaint I stumbled upon a hacked up
> configure script which has a test like this:
> 
> ld -o /dev/null <some libs>
> 
> 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)
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46128475.9060602>