mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
fd: change allocation to add a lowest fd option
This commit is contained in:
@@ -417,9 +417,9 @@ void sched_runinit(){
|
||||
|
||||
fd_t *stdinfd, *stdoutfd, *stderrfd;
|
||||
|
||||
fd_alloc(&proc->fdtable, &stdinfd, &tmp);
|
||||
fd_alloc(&proc->fdtable, &stdoutfd, &tmp);
|
||||
fd_alloc(&proc->fdtable, &stderrfd, &tmp);
|
||||
fd_alloc(&proc->fdtable, &stdinfd, &tmp, 0);
|
||||
fd_alloc(&proc->fdtable, &stdoutfd, &tmp, 0);
|
||||
fd_alloc(&proc->fdtable, &stderrfd, &tmp, 0);
|
||||
|
||||
#define CONSOLE_PATH "dev/console"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user