Skip to content
Browse files

/exec: close pipe fds when done.

Fixes: #37
  • Loading branch information...
1 parent 148d789 commit bd6667183a715ebc68e529bdafb43ea8418b8000 @mgorny mgorny committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 ekg/commands.c
View
3 ekg/commands.c
@@ -574,6 +574,7 @@ static WATCHER_LINE(cmd_exec_watch_handler) /* sta
return -1;
if (type == 1) {
+ close(fd);
if ((i->ref--) > 0)
return 0;
@@ -681,7 +682,7 @@ COMMAND(cmd_exec)
}
i = g_slice_new(cmd_exec_info_t);
-
+
i->quiet = quiet;
i->target = g_strdup(__target);
i->cmdexec = g_strdup(cmdexec);

0 comments on commit bd66671

Please sign in to comment.
Something went wrong with that request. Please try again.