X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/c50398ab4cb09658b3b3fff74804d2f26df785e7..c6de44b989e9d7286337e4cbf4d82d919f9120e6:/lunaix-os/kernel/demos/simple_sh.c diff --git a/lunaix-os/kernel/demos/simple_sh.c b/lunaix-os/kernel/demos/simple_sh.c index 5e89194..acebe21 100644 --- a/lunaix-os/kernel/demos/simple_sh.c +++ b/lunaix-os/kernel/demos/simple_sh.c @@ -1,8 +1,8 @@ #include #include #include +#include #include -#include #include #include @@ -124,8 +124,8 @@ sh_loop() pid_t p; signal(_SIGINT, sigint_handle); - // set our shell as foreground process (unistd.h:tcsetpgrp is wrapper of - // this) + // set our shell as foreground process + // (unistd.h:tcsetpgrp is essentially a wrapper of this) // stdout (by default, unless user did smth) is the tty we are currently at ioctl(stdout, TIOCSPGRP, getpgid());