X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Froute.c;h=c7833ebb43e4e3607728e8de79c77719b9f3b6a5;hb=a5dc727afcc92deab722a84ae5cf3d00ae74c5f6;hp=fd3cb3e6483675909697b78c5ead65013e0ce95d;hpb=afd5e75ffc8f64f0ebed1df9dce64793011c14a6;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/route.c b/src/src/route.c index fd3cb3e64..c7833ebb4 100644 --- a/src/src/route.c +++ b/src/src/route.c @@ -736,7 +736,7 @@ while ((check = string_nextinlist(&listptr, &sep, buffer, sizeof(buffer)))) otherwise. Save the old state for resetting on the wait. */ oldsignal = signal(SIGCHLD, SIG_DFL); - pid = fork(); + pid = exim_fork(US"require-files"); /* If fork() fails, reinstate the original error and behave as if this block of code were not present. This is the same behaviour as happens @@ -759,9 +759,9 @@ while ((check = string_nextinlist(&listptr, &sep, buffer, sizeof(buffer)))) exim_setugid(uid, gid, TRUE, string_sprintf("require_files check, file=%s", ss)); if (route_check_access(ss, uid, gid, 4)) - exim_underbar_exit(0, US"route-check-access"); + exim_underbar_exit(EXIT_SUCCESS); DEBUG(D_route) debug_printf("route_check_access() failed\n"); - exim_underbar_exit(1, US"route-check-access"); + exim_underbar_exit(EXIT_FAILURE); } /* In the parent, wait for the child to finish */