fixed NBENCH test on IRIX (tridge)
authorHerb Lewis <herb@samba.org>
Wed, 6 Mar 2002 21:05:26 +0000 (21:05 +0000)
committerHerb Lewis <herb@samba.org>
Wed, 6 Mar 2002 21:05:26 +0000 (21:05 +0000)
(This used to be commit d3c593b1208085f6c44e1707165ebee2b1cb4113)

source3/torture/torture.c

index cb5a951b940069eef6acf94a5fd8037b183ef71e..3c20a2896ad75b20f275b9f1a0579890e3de6eb9 100644 (file)
@@ -3162,7 +3162,7 @@ static double create_procs(BOOL (*fn)(int), BOOL *result)
        printf("%d clients started\n", nprocs);
 
        for (i=0;i<nprocs;i++) {
-               waitpid(0, &status, 0);
+               while (waitpid(0, &status, 0) == -1 && errno == EINTR) /* noop */ ;
        }
 
        printf("\n");