/[meta-cvs]/meta-cvs/F-83F0E6A90D5BBCDFB58440970E850925.c
ViewVC logotype

Diff of /meta-cvs/F-83F0E6A90D5BBCDFB58440970E850925.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by kaz, Tue Dec 3 07:25:00 2002 UTC revision 1.7 by kaz, Thu Jan 2 04:02:51 2003 UTC
# Line 172  bail: Line 172  bail:
172   * <unistd.h> -- fork, wait*, exec*   * <unistd.h> -- fork, wait*, exec*
173   */   */
174    
175    #ifdef __CYGWIN__
176    
177    /*
178     * waitpid is broken garbage on Cygwin, so we use its spawnvp function
179     * instead!
180     */
181    
182    #include <process.h>
183    int impl_spawn(const char *name, const char *const *argv)
184    {
185      return spawnvp(_P_WAIT, name, argv);
186    }
187    #else
188  int impl_spawn(const char *name, char *const *argv)  int impl_spawn(const char *name, char *const *argv)
189  {  {
   pid_t child = fork();  
190    int result = -1;    int result = -1;
191    int status;    int status = 0;
192    
193      pid_t child = fork();
194    
195    if (child == -1)    if (child == -1)
196      goto out;      goto out;
# Line 196  out: Line 210  out:
210    free((void *) argv);    free((void *) argv);
211    return result;    return result;
212  }  }
213    #endif

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.5