diff options
| author | Philipp Stephani | 2020-12-31 16:13:32 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2021-04-05 17:01:53 +0200 |
| commit | 7c304bc53b1348e2ee5a91b82e3fa6e1fa03d78b (patch) | |
| tree | 335b3ef4cbdceaa7f1d7de3be21ae4da68dcf618 | |
| parent | cc56e4bb6acb47b6a0bb1a9cafb6f4f5f9786874 (diff) | |
| download | emacs-7c304bc53b1348e2ee5a91b82e3fa6e1fa03d78b.tar.gz emacs-7c304bc53b1348e2ee5a91b82e3fa6e1fa03d78b.zip | |
* src/emacs.c (load_seccomp): Retry on interrupts.scratch/seccomp-no-gnulib-2
| -rw-r--r-- | src/emacs.c | 5 |
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"); |