- update documentation

- implement wait for linux

svn path=/trunk/; revision=28626
This commit is contained in:
Johannes Anderwald 2007-08-28 19:06:02 +00:00
parent 2d0f7aa512
commit c94ecb5367
3 changed files with 12 additions and 3 deletions

View file

@ -93,7 +93,7 @@ namespace System_
}
#else
/********************************************************************************************************************/
OsSupport::ProcessID OsSupport::createProcess(TCHAR *procname, int procargsnum, TCHAR **procargs)
OsSupport::ProcessID OsSupport::createProcess(TCHAR *procname, int procargsnum, TCHAR **procargs, bool wait)
{
ProcessID pid;
@ -107,7 +107,14 @@ namespace System_
execv(procname, procargs);
return 0;
}
else
{
/* parent process */
if (wait)
{
waitpid(pid, NULL, WNOHANG);
}
}
return pid;
}

View file

@ -16,6 +16,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/wait.h>
#endif
#include "user_types.h"

View file

@ -17,7 +17,8 @@ ROS_EMU_PATH=/usr/bin/qemu
; ROS_HDD_IMAGE
;
; The hdd image to use for running the emulator. If this variable is not
; set, SysReg will create a HDD with name "ros.img" using the qemu-img tool. It will search
; set, SysReg will create a HDD with name "ros.hd" in the ROS_OUTPUT
; directory using the qemu-img tool. It will search
; this tool in the directory of emulator and abort if the tool cannot be found
ROS_HDD_IMAGE=~/reactos/qemu/ReactOS.hd
;ROS_HDD_IMAGE=E:\reactos\qemu\ReactOS.hd