input: comments

This commit is contained in:
Daniel Eklöf 2020-07-15 16:47:01 +02:00
parent 1541531765
commit be9c566622
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;