mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-24 11:53:09 +00:00
fix bug introduced by lint cleanup commit 42458ff
This commit is contained in:
parent
d982427216
commit
25e0a39165
1 changed files with 1 additions and 1 deletions
|
@ -1316,7 +1316,7 @@ class universal_notifier_named_pipe_t : public universal_notifier_t {
|
|||
// it back. Nobody is expected to read it except us.
|
||||
int pid_nbo = htonl(getpid());
|
||||
ssize_t amt_written = write(this->pipe_fd, &pid_nbo, sizeof pid_nbo);
|
||||
if (amt_written < 0 && errno == EWOULDBLOCK || errno == EAGAIN) {
|
||||
if (amt_written < 0 && (errno == EWOULDBLOCK || errno == EAGAIN)) {
|
||||
// Very unsual: the pipe is full!
|
||||
drain_excessive_data();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue