mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
- update documentation
- implement wait for linux svn path=/trunk/; revision=28626
This commit is contained in:
parent
2d0f7aa512
commit
c94ecb5367
3 changed files with 12 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <signal.h>
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#include "user_types.h"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue