(wrong string) ée

From: <git_AT_suckless.org>
Date: Thu, 4 May 2017 19:30:06 +0200 (CEST)

commit 5e0f7123b91acc6669e8373bb3390c881a6a7fd2
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Thu May 4 19:07:29 2017 +0200
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Thu May 4 19:07:29 2017 +0200

    Fix enjoin_jobs
    
    Signed-off-by: Mattias Andrée <maandree_AT_kth.se>

diff --git a/src/util.c b/src/util.c
index 8fb4877..95f714b 100644
--- a/src/util.c
+++ b/src/util.c
_AT_@ -215,14 +215,14 @@ enjoin_jobs(int status, int is_master, pid_t *pids)
         int stat;
         size_t i;
         if (!is_master)
- exit(0);
+ free(pids), exit(0);
         if (!pids)
                 return;
         for (i = 0; pids[i] != -1; i++) {
                 if (waitpid(pids[i], &stat, 0) == -1)
                         enprintf(status, "waitpid:");
- if (status)
- exit(WIFEXITED(status) ? WEXITSTATUS(status) : WTERMSIG(status));
+ if (stat)
+ exit(WIFEXITED(stat) ? WEXITSTATUS(stat) : WTERMSIG(stat));
         }
         free(pids);
 }
Received on Thu May 04 2017 - 19:30:06 CEST

This archive was generated by hypermail 2.3.0 : Thu May 04 2017 - 19:36:22 CEST