mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
input: comments
This commit is contained in:
parent
1541531765
commit
be9c566622
1 changed files with 3 additions and 1 deletions
4
input.c
4
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);
|
int flags = fcntl(pipe_fd[1], F_GETFD);
|
||||||
if (flags < 0 ||
|
if (flags < 0 ||
|
||||||
|
|
@ -211,6 +212,7 @@ execute_binding(struct seat *seat, struct terminal *term,
|
||||||
.left = len,
|
.left = len,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Asynchronously write the output to the pipe */
|
||||||
if (!fdm_add(term->fdm, pipe_fd[1], EPOLLOUT, &fdm_write_pipe, ctx))
|
if (!fdm_add(term->fdm, pipe_fd[1], EPOLLOUT, &fdm_write_pipe, ctx))
|
||||||
goto pipe_err;
|
goto pipe_err;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue