Re: [dev] Announcing sinit - the suckless init

From: Eckehard Berns <ecki-suckless_AT_ecki.to>
Date: Fri, 7 Feb 2014 13:42:36 +0100

On Fri, Feb 07, 2014 at 12:03:03PM +0000, sin wrote:
> I've fixed the issues you mentioned except the case when rootfs is mounted
> as ro.
>
> How would you tackle that?

I thought about this a bit. If the fifo is present when booting the
ro root fs everything should be fine. You wouldn't be able to unlink
fifopath or create it, but since it's already there the call to open()
should succeed. You'd have to ignore errors for unlink() and mkfifo()
and only check open() for errors. I can't test this at the moment, but I
think this might work.

-- 
Eckehard Berns
Received on Fri Feb 07 2014 - 13:42:36 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 07 2014 - 13:48:05 CET