shell can launch another user processgit add .git add .!
This commit is contained in:
@@ -61,4 +61,8 @@ int exec(const char* path) {
|
||||
|
||||
int dup2(int src, int dst) {
|
||||
return syscall3(SYS_DUP2, src, dst, 0);
|
||||
}
|
||||
|
||||
int waitpid(int pid, int* status) {
|
||||
return syscall3(SYS_WAIT, pid, (uint32_t)status, 0);
|
||||
}
|
||||
Reference in New Issue
Block a user