emacs-diffs
[Top][All Lists]
Advanced

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

scratch/seccomp-no-gnulib-2 8f9ce5c 2/2: * src/emacs.c (load_seccomp): R


From: Philipp Stephani
Subject: scratch/seccomp-no-gnulib-2 8f9ce5c 2/2: * src/emacs.c (load_seccomp): Retry on interrupts.
Date: Thu, 31 Dec 2020 10:14:10 -0500 (EST)

branch: scratch/seccomp-no-gnulib-2
commit 8f9ce5cd191f61e1f4bfdfe0600b89ada70d31c4
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    * src/emacs.c (load_seccomp): Retry on interrupts.
---
 src/emacs.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/emacs.c b/src/emacs.c
index 0410877..d888c66 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -975,7 +975,10 @@ load_seccomp (const char *file)
 {
   bool success = false;
   struct sock_fprog program = {0, NULL};
-  FILE *stream = fopen (file, "rb");
+  FILE *stream;
+  do
+    stream = fopen (file, "rb");
+  while (stream == NULL && errno == EINTR);
   if (stream == NULL)
     {
       emacs_perror ("fopen");



reply via email to

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