X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprocess.c;h=46d6067fdd936c4f58e2f77d87b6b75a37326bee;hp=45acc5c272e465035e112a1af9c587f143d9468b;hb=2a7f11c0e90f5f0465bbc3c75de715454066ff72;hpb=71f8124ea49f2a0e00e0cedbb1b76e49e9f1425d diff --git a/src/process.c b/src/process.c index 45acc5c2..46d6067f 100644 --- a/src/process.c +++ b/src/process.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: process.c,v 1.1.2.52 2003/07/06 23:16:28 guus Exp $ + $Id: process.c,v 1.1.2.53 2003/07/11 16:13:00 guus Exp $ */ #include "config.h" @@ -287,11 +287,14 @@ int execute_script(const char *name, char **envp) name); return -1; } - } else { + } else if (errno != EINTR) { logger(DEBUG_ALWAYS, LOG_ERR, _("System call `%s' failed: %s"), "waitpid", strerror(errno)); return -1; } + + /* Why do we get EINTR? */ + return 0; } /* Child here */