Skip to content

Commit 376b0d7

Browse files
Update kernel.py
1 parent 125dd2a commit 376b0d7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

kernel/kernel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ async def scheduler():
7575
while True:
7676
for pid, p in procs.items():
7777
if p.server and p.state == CLOSED:
78+
p.state = RUNNING
7879
asyncio.create_task(run_proc(pid))
7980

8081
active_procs = [p for p in procs.values() if p.state == RUNNING]
@@ -98,4 +99,5 @@ def boot():
9899
connect(p_id, 1, reply_bus, 0)
99100
connect(fs_pid, p_id, reply_bus, 1)
100101

101-
print(f"[BOOT]: {len(procs)} processes linked via Pech-pipes.")
102+
103+
print(f"[BOOT]: {len(procs)} processes linked via Pech-pipes.")

0 commit comments

Comments
 (0)