Skip to content

Commit

Permalink
Disable stdin
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Gallouët <[email protected]>
  • Loading branch information
angt committed Apr 17, 2020
1 parent af97f19 commit caa14c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ main(int argc, char *argv[])
setsid();

si_init_fs();
si_init_fd("/dev/console", (int[]){0, 1, 2}, 3);
si_init_fd("/dev/null", (int[]){0}, 1);
si_init_fd("/dev/console", (int[]){1, 2}, 2);
si_init_fd("/dev/kmsg", (int[]){2}, 1);
si_init_term();

Expand Down

0 comments on commit caa14c2

Please sign in to comment.