kernel: Copy process name on fork()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-04-07 14:02:36 +02:00
parent 0f678f845c
commit b22bea84ec
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -119,6 +119,7 @@ Result<u64> sys_fork(Registers* regs, SyscallArgs)
thread->is_kernel = false;
thread->parent_id = current->id;
thread->fp_data.save();
thread->name = current->name;
for (int i = 0; i < FD_MAX; i++) { thread->fd_table[i] = current->fd_table[i]; }