]> git.corax.cc Git - corax/commitdiff
kernel/core: Wake up sleeping processes upon signal reception sched-next
authorMatthias Kruk <m@m10k.eu>
Fri, 1 May 2020 01:41:40 +0000 (10:41 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 1 May 2020 01:41:40 +0000 (10:41 +0900)
kernel/core/process.c

index c21f14eda3b93e6fb9a4fd0f557d99a874c298d1..07b16b38d357d5eac22008ffafe7291a6d3deadb 100644 (file)
@@ -1143,8 +1143,8 @@ int process_put_signal(process_t *proc, int signal, siginfo_t *si)
                if(!ret_val) {
                        /* process needs to be woken up if it was sleeping */
 
-                       /* FIXME: Which task do we wake up? */
-                       /* sched_wakeup(task, 1); */
+                       /* FIXME: This is most definitely not the right way to do this */
+                       sched_wakeup(proc->p_tasks[0], 1);
                }
        }