aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-15 14:47:01 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-15 14:47:01 +0000
commitbe9c566622959d2435caaab0004e498a79d683ca (patch)
tree6b002e4e7b8aafc65dccbd2fd1e1b709b238c982 /input.c
parentconf: bindings: allow several mappings for the same action (diff)
input: comments
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/input.c b/input.c
index e9978fb2..ff4f9edf 100644
--- a/input.c
+++ b/input.c
@@ -184,7 +184,8 @@ execute_binding(struct seat *seat, struct terminal *term,
}
}
- /* Make sure write-end is closed on exec() */
+ /* Make sure write-end is closed on exec() - or the spawned
+ * program may not terminate*/
{
int flags = fcntl(pipe_fd[1], F_GETFD);
if (flags < 0 ||
@@ -211,6 +212,7 @@ execute_binding(struct seat *seat, struct terminal *term,
.left = len,
};
+ /* Asynchronously write the output to the pipe */
if (!fdm_add(term->fdm, pipe_fd[1], EPOLLOUT, &fdm_write_pipe, ctx))
goto pipe_err;