mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:03:00 +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
|
#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;
|
ProcessID pid;
|
||||||
|
|
||||||
|
@ -107,7 +107,14 @@ namespace System_
|
||||||
execv(procname, procargs);
|
execv(procname, procargs);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* parent process */
|
||||||
|
if (wait)
|
||||||
|
{
|
||||||
|
waitpid(pid, NULL, WNOHANG);
|
||||||
|
}
|
||||||
|
}
|
||||||
return pid;
|
return pid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "user_types.h"
|
#include "user_types.h"
|
||||||
|
|
|
@ -17,7 +17,8 @@ ROS_EMU_PATH=/usr/bin/qemu
|
||||||
; ROS_HDD_IMAGE
|
; ROS_HDD_IMAGE
|
||||||
;
|
;
|
||||||
; The hdd image to use for running the emulator. If this variable is not
|
; 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
|
; 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=~/reactos/qemu/ReactOS.hd
|
||||||
;ROS_HDD_IMAGE=E:\reactos\qemu\ReactOS.hd
|
;ROS_HDD_IMAGE=E:\reactos\qemu\ReactOS.hd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue