From fbb3081cacdf5ad6991e695b55c995c60a83eb64 Mon Sep 17 00:00:00 2001 From: ciomaire Date: Tue, 3 May 2016 13:41:14 +0200 Subject: [PATCH] kill correct pid on fdopen failure --- src/exec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/exec.c b/src/exec.c index d560f465..83055dac 100644 --- a/src/exec.c +++ b/src/exec.c @@ -744,8 +744,7 @@ static void *exec_notification_one (void *arg) /* {{{ */ char errbuf[1024]; ERROR ("exec plugin: fdopen (%i) failed: %s", fd, sstrerror (errno, errbuf, sizeof (errbuf))); - kill (pl->pid, SIGTERM); - pl->pid = 0; + kill (pid, SIGTERM); close (fd); sfree (arg); pthread_exit ((void *) 1); -- 2.30.2