| 30 | } |
| 31 | |
| 32 | void first_process() |
| 33 | { |
| 34 | int pid = fork(); |
| 35 | |
| 36 | if(pid == -1) { |
| 37 | printf("error\n"); |
| 38 | asm_halt(); |
| 39 | } else { |
| 40 | if(pid) { |
| 41 | while((pid = wait(nullptr)) != -1) { |
| 42 | |
| 43 | } |
| 44 | asm_halt(); |
| 45 | } else { |
| 46 | Shell shell; |
| 47 | shell.initialize(); |
| 48 | shell.run(); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | } |
| 53 | |
| 54 | void first_thread(void *arg) |
| 55 | { |
nothing calls this directly
no test coverage detected