apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: apr/threadproc/win32 proc.c
Date Thu, 18 Jul 2002 12:58:54 GMT
ianh        2002/07/18 05:58:54

  Modified:    .        CHANGES
               threadproc/win32 proc.c
  Log:
  The HANDLE members in the STARTUPINFO struct used in the call to
  CreateProcess() aren't currently initialized properly...
  
  Obtained from: Rob Sacoaccio <robs@fastcgi.com>
  Reviewed by: Ian Holsman
  
  Revision  Changes    Path
  1.309     +3 -0      apr/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apr/CHANGES,v
  retrieving revision 1.308
  retrieving revision 1.309
  diff -u -r1.308 -r1.309
  --- CHANGES	17 Jul 2002 05:26:52 -0000	1.308
  +++ CHANGES	18 Jul 2002 12:58:53 -0000	1.309
  @@ -1,5 +1,8 @@
   Changes with APR b1
   
  +  *) initalize handle members to invalid before calling createprocess
  +     on win32 [Rob Saccoccio <robs@fastcgi.com>]
  +
     *) Removed apr/i18n to apr-util/xlate for inclusion of apr-iconv
        as required by missing libiconv.  [William Rowe]
   
  
  
  
  1.81      +4 -0      apr/threadproc/win32/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/win32/proc.c,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- proc.c	5 Jul 2002 17:58:10 -0000	1.80
  +++ proc.c	18 Jul 2002 12:58:54 -0000	1.81
  @@ -590,6 +590,10 @@
   
           memset(&si, 0, sizeof(si));
           si.cb = sizeof(si);
  +        si.hStdInput = INVALID_HANDLE_VALUE;
  +        si.hStdOutput = INVALID_HANDLE_VALUE;
  +        si.hStdError = INVALID_HANDLE_VALUE;
  +
           if (attr->detached) {
               si.dwFlags |= STARTF_USESHOWWINDOW;
               si.wShowWindow = SW_HIDE;
  
  
  

Mime
View raw message