Blaisorblade wrote: > Using > /dev/null 2>&1 is not suitable? Well yes, that might also help. However, when you supply a daemon mode, I think it is also a good idea to add a silent feature, so that it is more easily and cleanly scriptable.
> Also happens to me, with a single daemon not connected to anything ;-). > It was a bug of -daemon compared to < /dev/null. Just fixed in attached > patch. > Please test it. Works as a charm. > In fact, docs do not talk about '-daemon' - I was the first to document it > when happening to see it in sources. The web page says: Well, Matt Zimmerman of the Debian team also found it and even wrote a whole nice man page for uml_switch (and other tools) that comes with "apt-get install uml-utilities" :) >> Yes, but it's also spamming with messages that it cannot write to fd 4. > > The attached patch should remove them too, but I didn't try to reproduce this > bug. Could you please post the exact error you are currrently getting so that > I now if I'm fixing the right thing? I think there's a (currently harmless) > bug there, since EAGAIN is not ignored and sockets are set as O_NONBLOCK. > Luckily it just prints a message, it does not close the socket for a write > failure. send_sock sending to fd 4 Resource temporarily unavailable However, this message disappears when using your patch. > Can you also look during that at what fd 4 is via ls /proc/$switch_pid/fd? /proc/11671/fd/4 -> socket:[65423] I'm sorry, but I don't really know how to get more information besides that... Jeroen. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user