Skip to content

Commit

Permalink
Fixd bug in monitor syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
guancio committed Oct 24, 2024
1 parent 28d46bc commit 2dc49a6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/src/cap_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ err_t cap_monitor_yield(cte_t mon, pid_t pid, proc_t **next)
{
err_t err = check_monitor(mon, pid, false);
if (!err) {
proc_t *monitor = *next;
proc_t *proc = proc_get(pid);
if (proc_acquire(proc)) {
*next = proc;
proc_release(monitor);
return SUCCESS;
}
return ERR_INVALID_STATE;
Expand Down

0 comments on commit 2dc49a6

Please sign in to comment.