emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7415c66: ; * src/process.c (child_signal_read): Don't report EAGA


From: Mattias Engdegård
Subject: master 7415c66: ; * src/process.c (child_signal_read): Don't report EAGAIN as error
Date: Fri, 29 Jan 2021 16:29:10 -0500 (EST)

branch: master
commit 7415c66d8b3e2476aeea64c70ef376c12a39f175
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    ; * src/process.c (child_signal_read): Don't report EAGAIN as error
---
 src/process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/process.c b/src/process.c
index 1df4ed9..3beb9cf 100644
--- a/src/process.c
+++ b/src/process.c
@@ -7217,7 +7217,7 @@ child_signal_read (int fd, void *data)
   eassert (0 <= fd);
   eassert (fd == child_signal_read_fd);
   char dummy;
-  if (emacs_read (fd, &dummy, 1) < 0)
+  if (emacs_read (fd, &dummy, 1) < 0 && errno != EAGAIN)
     emacs_perror ("reading from child signal FD");
 }
 #endif /* !WINDOWSNT */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]