aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilipp Stephani2020-12-31 16:13:32 +0100
committerPhilipp Stephani2021-04-05 17:01:53 +0200
commit7c304bc53b1348e2ee5a91b82e3fa6e1fa03d78b (patch)
tree335b3ef4cbdceaa7f1d7de3be21ae4da68dcf618 /src
parentcc56e4bb6acb47b6a0bb1a9cafb6f4f5f9786874 (diff)
downloademacs-scratch/seccomp-no-gnulib-2.tar.gz
emacs-scratch/seccomp-no-gnulib-2.zip
* src/emacs.c (load_seccomp): Retry on interrupts.scratch/seccomp-no-gnulib-2
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index bb2a0bb390f..b7dd52b1e4c 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -976,7 +976,10 @@ load_seccomp (const char *file)
976{ 976{
977 bool success = false; 977 bool success = false;
978 struct sock_fprog program = {0, NULL}; 978 struct sock_fprog program = {0, NULL};
979 FILE *stream = fopen (file, "rb"); 979 FILE *stream;
980 do
981 stream = fopen (file, "rb");
982 while (stream == NULL && errno == EINTR);
980 if (stream == NULL) 983 if (stream == NULL)
981 { 984 {
982 emacs_perror ("fopen"); 985 emacs_perror ("fopen");