mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
68c2fc6824
2
client.c
2
client.c
@ -436,7 +436,7 @@ client_stdin_callback(__unused int fd, __unused short events,
|
|||||||
struct msg_stdin_data data;
|
struct msg_stdin_data data;
|
||||||
|
|
||||||
data.size = read(STDIN_FILENO, data.data, sizeof data.data);
|
data.size = read(STDIN_FILENO, data.data, sizeof data.data);
|
||||||
if (data.size < 0 && (errno == EINTR || errno == EAGAIN))
|
if (data.size == -1 && (errno == EINTR || errno == EAGAIN))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
proc_send(client_peer, MSG_STDIN, -1, &data, sizeof data);
|
proc_send(client_peer, MSG_STDIN, -1, &data, sizeof data);
|
||||||
|
2
job.c
2
job.c
@ -117,7 +117,7 @@ job_run(const char *cmd, struct session *s, const char *cwd,
|
|||||||
close(out[0]);
|
close(out[0]);
|
||||||
|
|
||||||
nullfd = open(_PATH_DEVNULL, O_RDWR, 0);
|
nullfd = open(_PATH_DEVNULL, O_RDWR, 0);
|
||||||
if (nullfd < 0)
|
if (nullfd == -1)
|
||||||
fatal("open failed");
|
fatal("open failed");
|
||||||
if (dup2(nullfd, STDERR_FILENO) == -1)
|
if (dup2(nullfd, STDERR_FILENO) == -1)
|
||||||
fatal("dup2 failed");
|
fatal("dup2 failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user