NAME ^

config\gen\platform\win32\exec.c

DESCRIPTION ^

Functions for dealing with child processes and Execs.

Functions ^

INTVAL Parrot_Run_OS_Command(Parrot_Interp interp, STRING *command)

Spawn the subprocess specified in command. Waits for the process to complete, and then returns the exit code in POSIX-compatibility mode.

INTVAL Parrot_Run_OS_Command_Argv(Parrot_Interp interp, PMC *cmdargs)

Spawns a subprocess with the arguments provided in the cmdargs PMC array. The first array element should be the name of the process to spawn, and the remainder of the array elements should be arguments. Waits until the child process completes, and returns the exit code in POSIX-compatibility mode.

void Parrot_Exec_OS_Command(Parrot_Interp interp, STRING *command)

Exits parrot and passes control to the specified process. Does not return. Raises an exception if the exec fails.


parrot