X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Fchcontext.c;h=4da51d99837f893a9f981525c7fcd40d97171f9a;hb=5736e97486dbc7182b2e832f4367812741ccbd86;hp=cda4c8059e115f5836b8637a6220de44a6f729e3;hpb=e5c32a7da5ed2a14f795eacfce8ab3edd4150a90;p=util-vserver.git diff --git a/util-vserver/src/chcontext.c b/util-vserver/src/chcontext.c index cda4c80..4da51d9 100644 --- a/util-vserver/src/chcontext.c +++ b/util-vserver/src/chcontext.c @@ -40,6 +40,7 @@ #include #include #include +#include #define ENSC_WRAPPERS_PREFIX "chcontext: " #define ENSC_WRAPPERS_VSERVER 1 @@ -283,7 +284,8 @@ int main (int argc, char *argv[]) pid_t pid; global_args = &args; - + signal(SIGCHLD, SIG_DFL); + while (1) { int c = getopt_long(argc, argv, "+", CMDLINE_OPTIONS, 0); if (c==-1) break;