Re: Surviving /dev/null disappearance

From: Maxim Sobolev <sobomax_at_FreeBSD.org>
Date: Tue, 03 Apr 2007 09:44:37 -0700
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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
> 
Received on Tue Apr 03 2007 - 15:09:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:07 UTC