procfs: indicate stopped (T) in status

This commit is contained in:
K. Lange 2018-10-26 20:50:11 +09:00
parent 6c88956fa4
commit 3d2e94d387

View File

@ -138,7 +138,9 @@ static uint32_t proc_status_func(fs_node_t *node, uint32_t offset, uint32_t size
return 0;
}
char state = proc->finished ? 'Z' : (process_is_ready(proc) ? 'R' : 'S');
char state = proc->finished ? 'Z' :
(proc->suspended ? 'T' :
(process_is_ready(proc) ? 'R' : 'S'));
char * name = proc->name + strlen(proc->name) - 1;
while (1) {