]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
usleep(WAITSLEEP) while waiting for child processes to die
authormortenp <none@none>
Wed, 2 Jun 2004 15:26:25 +0000 (01:26 +1000)
committermortenp <none@none>
Wed, 2 Jun 2004 15:26:25 +0000 (01:26 +1000)
src/mlmmj-send.c

index 2ca5cb17e858a3d9d55327a7539b3e991c95e806..969adb2969d967389e3ac52c9b7ee7e4ffa3602c 100644 (file)
@@ -599,8 +599,8 @@ int main(int argc, char **argv)
                break;
        }
        
-       while(conncount)
-               sleep(1);
+       while(conncount > 0)
+               usleep(WAITSLEEP);
 
        if(archive) {
                rename(mailfilename, archivefilename);