Kaydet (Commit) c84fa0f6 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS os2port01 (1.9.12); FILE MERGED

2007/08/08 08:43:38 obr 1.9.12.2: RESYNC: (1.9-1.11); FILE MERGED
2006/12/28 14:54:34 ydario 1.9.12.1: OS/2 initial import.
üst b3af662c
/* $RCSfile: runargv.c,v $
-- $Revision: 1.11 $
-- last change: $Author: vg $ $Date: 2007-01-18 09:44:15 $
-- $Revision: 1.12 $
-- last change: $Author: vg $ $Date: 2007-09-20 14:35:30 $
--
-- SYNOPSIS
-- Invoke a sub process.
......@@ -128,6 +128,11 @@ _finished_child(pid, ?) [unix/runargv] handles the finished child. If there
# include <process.h>
#endif
#ifdef __EMX__
# include <process.h>
#define _P_NOWAIT P_NOWAIT
#endif
#include "sysintf.h"
#if HAVE_ERRNO_H
# include <errno.h>
......@@ -308,7 +313,7 @@ char *cmd;
argv = Pack_argv( group, shell, cmd );
/* Really spawn or fork a child. */
#if ENABLE_SPAWN && ( HAVE_SPAWN_H || __CYGWIN__ )
#if ENABLE_SPAWN && ( HAVE_SPAWN_H || __CYGWIN__ || __EMX__)
/* As no other childs are started while the output is redirected this
* is save. */
if( Is_exec_shell ) {
......@@ -325,7 +330,7 @@ char *cmd;
dup2( zerofd, 1 );
}
}
#if __CYGWIN__
#if defined( __CYGWIN__) || defined( __EMX__)
pid = spawnvp(_P_NOWAIT, argv[0], (const char**) argv);
#else /* __CYGWIN__ */
if (posix_spawnp (&pid, argv[0], NULL, NULL, argv, (char *)NULL))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment