X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/c50398ab4cb09658b3b3fff74804d2f26df785e7..17fe1418db474b23d9f516db049772dfe3d8696c:/lunaix-os/kernel/demos/simple_sh.c?ds=sidebyside 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());