summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 0410877399e..d888c66289d 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");