struct proc remove dead field
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m52s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m52s
This commit is contained in:
@@ -762,8 +762,6 @@ DEFINE_SYSCALL (sys_get_exec_pid) {
|
||||
|
||||
/* wait_for_pid (int pid) */
|
||||
DEFINE_SYSCALL (sys_wait_for_pid) {
|
||||
uint64_t fp;
|
||||
|
||||
int pid = (int)a1;
|
||||
|
||||
struct proc* wait_proc = proc_find_pid (pid);
|
||||
@@ -771,15 +769,6 @@ DEFINE_SYSCALL (sys_wait_for_pid) {
|
||||
if (wait_proc == NULL)
|
||||
return SYSRESULT (-ST_NOT_FOUND);
|
||||
|
||||
spin_lock (&wait_proc->lock, &fp);
|
||||
|
||||
if (wait_proc->dead) {
|
||||
spin_unlock (&wait_proc->lock, fp);
|
||||
return SYSRESULT (-ST_NOT_FOUND);
|
||||
}
|
||||
|
||||
spin_unlock (&wait_proc->lock, fp);
|
||||
|
||||
proc_wait_for (proc, rctx, wait_proc);
|
||||
|
||||
return SYSRESULT (ST_OK);
|
||||
|
||||
Reference in New Issue
Block a user