TD3:II.1 First working version of ForkExec
But need to implement Process exit...
This commit is contained in:
parent
f7eca8c6ac
commit
07853cbcd3
8 changed files with 61 additions and 4 deletions
|
@ -226,6 +226,14 @@ ExceptionHandler (ExceptionType which)
|
|||
do_ThreadExit();
|
||||
break;
|
||||
}
|
||||
case SC_ForkExec:
|
||||
{
|
||||
int s = machine->ReadRegister(4);
|
||||
char * command = new char[MAX_STRING_SIZE];
|
||||
int size = copyStringFromMachine(s, command, MAX_STRING_SIZE);
|
||||
do_ForkExec(command);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue