X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f2753d64be0a74a22018e03ec9c04cc9ca45d3ab..ff30f98e6a1ea1de5ed4ea69cc3552440ee7f26c:/sbr/push.c diff --git a/sbr/push.c b/sbr/push.c index d77e3754..5417f390 100644 --- a/sbr/push.c +++ b/sbr/push.c @@ -5,8 +5,11 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "push.h" +#include "error.h" +#include "h/signals.h" +#include "h/done.h" #include "m_mktemp.h" @@ -14,11 +17,8 @@ void push(void) { pid_t pid; - int i; - - for (i = 0; (pid = fork()) == -1 && i < 5; i++) - sleep (5); + pid = fork(); switch (pid) { case -1: /* fork error */