[exim-cvs] Logging: avoid pause during log-open under testsu…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Logging: avoid pause during log-open under testsuite
Gitweb: https://git.exim.org/exim.git/commitdiff/d0ca5e2e73a2a8092db4b1966f1da67fd67b8d41
Commit:     d0ca5e2e73a2a8092db4b1966f1da67fd67b8d41
Parent:     3327394394a45c79cd48b2091536f6a6b8ba32a3
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Fri May 28 13:33:49 2021 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri May 28 13:33:49 2021 +0100


    Logging: avoid pause during log-open under testsuite
    It results in rearranged logging output, causing testsuite case failures
    The downside is that we lose debug visbility of the extra process startup


    Broken-by: b6c1434e47
---
 src/src/log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/src/src/log.c b/src/src/log.c
index bb6902e..ae4f084 100644
--- a/src/src/log.c
+++ b/src/src/log.c
@@ -403,7 +403,7 @@ else if (euid == root_uid)
   int sock[2];
   if (socketpair(AF_UNIX, SOCK_STREAM, 0, sock) == 0)
     {
-    const pid_t pid = exim_fork(US"logfile-open");
+    const pid_t pid = fork();
     if (pid == 0)
       {
       (void)close(sock[0]);