You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bj...@hyperreal.org on 1999/05/30 10:55:30 UTC

cvs commit: apache-1.3/src/main http_log.c

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