summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 281ecad)
raw | patch | inline | side by side (parent: 281ecad)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 4 Nov 2007 13:20:43 +0000 (14:20 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 4 Nov 2007 13:20:43 +0000 (14:20 +0100) |
Otherwise the program will not be executed ever again after it failed once.
src/exec.c | patch | blob | history |
diff --git a/src/exec.c b/src/exec.c
index d9f2d8ce26c60bfc9de60b45fe47a46dd65ac560..fd20191a253f55417d302500d2d7fc3bfa89b35e 100644 (file)
--- a/src/exec.c
+++ b/src/exec.c
ERROR ("exec plugin: fdopen (%i) failed: %s", fd,
sstrerror (errno, errbuf, sizeof (errbuf)));
kill (pl->pid, SIGTERM);
+ pl->pid = 0;
close (fd);
pthread_exit ((void *) 1);
}