X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=55070a3d7a89950051a1374c400511527c19b7a9;hp=52d56c9eba015880000db26e4183814434ad6f39;hb=d830824b39d538a9311ed8a490b8265dc2caa73a;hpb=52f6c9ab26c8a64ec413c7b4ae8cf43ac8f628a5 diff --git a/command.c b/command.c index 52d56c9e..55070a3d 100644 --- a/command.c +++ b/command.c @@ -690,7 +690,9 @@ static int com_stat(int socket_fd, int argc, char **argv) ret = 1; if (num == 1) goto out; - usleep(500000 * 100); + sleep(50); + if (getppid() == 1) + return -E_SERVER_CRASH; } out: return ret;