httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@hyperreal.org
Subject cvs commit: apache-1.3/src/main http_log.c
Date Sun, 30 May 1999 08:55:30 GMT
bjh         99/05/30 01:55:30

  Modified:    src/main http_log.c
  Log:
  Fix piped logs under OS/2
  
  Revision  Changes    Path
  1.78      +8 -4      apache-1.3/src/main/http_log.c
  
  Index: http_log.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/http_log.c,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- http_log.c	1999/04/27 20:36:31	1.77
  +++ http_log.c	1999/05/30 08:55:29	1.78
  @@ -172,8 +172,10 @@
       child_pid = spawnl(_P_NOWAIT, SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, NULL);
       return(child_pid);
   #elif defined(OS2)
  -    /* For OS/2 we need to use a '/' */
  -    execl(SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, NULL);
  +    /* For OS/2 we need to use a '/' and spawn the child rather than exec as
  +     * we haven't forked */
  +    child_pid = spawnl(P_NOWAIT, SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, NULL);
  +    return(child_pid);
   #else    
       execl(SHELL_PATH, SHELL_PATH, "-c", (char *)cmd, NULL);
   #endif    
  @@ -727,8 +729,10 @@
       child_pid = spawnl(_P_NOWAIT, SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, NULL);
       return(child_pid);
   #elif defined(OS2)
  -    /* For OS/2 we need to use a '/' */
  -    execl (SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, NULL);
  +    /* For OS/2 we need to use a '/' and spawn the child rather than exec as
  +     * we haven't forked */
  +    child_pid = spawnl(P_NOWAIT, SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, NULL);
  +    return(child_pid);
   #else
       execl (SHELL_PATH, SHELL_PATH, "-c", (char *)cmd, NULL);
   #endif
  
  
  

Mime
View raw message