Now that `cs` understands the daemonize protocol, use it in the `ifconfig` script. Remove the busy-waiting loop waiting for the /srv/cs file to appear.
Change-Id: I06db794b38ad50957c56668f7a8cef807d54101c Signed-off-by: Dan Cross <[email protected]> --- kern/kfs/ifconfig | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/kern/kfs/ifconfig b/kern/kfs/ifconfig index f99ca1f..237e599 100755 --- a/kern/kfs/ifconfig +++ b/kern/kfs/ifconfig @@ -92,19 +92,7 @@ else echo 'add 127.0.0.1 255.0.0.0 127.0.0.0' > /net/ipifc/$i/ctl fi -# -# Start cs (the name resolution server) and wait for it to post a -# file descriptor in #srv, then mount it in /net. -# -cs & -if [ ! -e '#srv/cs' ] -then - echo 'cs has not created #srv/cs yet, spinning until it does....' - until [ -e '#srv/cs' ] - do - usleep 1000 - done -fi +daemonize /bin/cs -S mount -a '#srv/cs' /net # This is noisy, so it is off by default. -- 2.8.0.rc3.226.g39d4020 -- You received this message because you are subscribed to the Google Groups "Akaros" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
