From: Enrico Scholz (enrico.scholz_at_informatik.tu-chemnitz.de)
Date: Tue 13 Apr 2004 - 08:52:44 BST
christian.jaeger_at_ethlife.ethz.ch (Christian Jaeger) writes:
> after rebooting a vserver running sarge, tcpserver (qmail) eats 100%
> cpu. this only happens when rebooting it from inside (using reboot
> -f), not when I "vserver foo restart" manually from the host.
>
> strace shows this (looping):
> rt_sigprocmask(SIG_BLOCK, [CHLD], NULL, 8) = 0
> rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
> accept(0, 0xbffff878, [16]) = -1 EBADF (Bad file descriptor)
I guess, 'tcpserver' closes standard input (fd 0) after creating the
sockets. When fd 0 is closed at program startup, the newly created
socket will get fd 0 and be closed.
Can you try to add a
| exec </dev/null
somewhere in the vshelper or in your proxy script?
Enrico
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver