=== modified file 'plugin-runner.c' --- plugin-runner.c 2009-09-04 16:32:22 +0000 +++ plugin-runner.c 2009-09-05 17:20:46 +0000 @@ -1,4 +1,4 @@ -/* -*- coding: utf-8 -*- */ +/* -*- coding: utf-8; mode: c; mode: orgtbl -*- */ /* * Mandos plugin runner - Run Mandos plugins * @@ -210,7 +210,7 @@ /* * Based on the example in the GNU LibC manual chapter 13.13 "File * Descriptor Flags". - * *Note File Descriptor Flags:(libc)Descriptor Flags. + | [[info:libc:Descriptor%20Flags][File Descriptor Flags]] | */ static int set_cloexec_flag(int fd){ int ret = fcntl(fd, F_GETFD, 0); @@ -617,6 +617,14 @@ custom_argv[custom_argc] = NULL; } } + do{ + ret = fclose(conffp); + }while(ret == EOF and errno == EINTR); + if(ret == EOF){ + perror("fclose"); + exitstatus = EXIT_FAILURE; + goto fallback; + } free(org_line); } else { /* Check for harmful errors and go to fallback. Other errors might