Skip to content

Commit 9bb88c9

Browse files
committed
sched: ensure new threads created with exec() are added to the queue
1 parent fcfd427 commit 9bb88c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sched/exec.c

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ int execmve(Thread *t, void *image, const char **argv, const char **envp) {
214214
// to free up memory used by the original program
215215
free(oldctx);
216216

217+
t->status = THREAD_QUEUED;
217218
schedAdjustTimeslice();
218219
setScheduling(true);
219220
schedRelease();

0 commit comments

Comments
 (0)