mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 10:11:10 +08:00
fix bug introduced by lint cleanup commit 42458ff
This commit is contained in:
parent
d982427216
commit
25e0a39165
@ -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…
x
Reference in New Issue
Block a user