cs412017
2005-09-20 04:27:38 UTC
I tried testing for background processes using newshell.c. When I try to
fork the shell process from newshell, shell just prints '$' since it
calls Get_Key and exits as I have set up Get_Key to return -1 without
waiting for user input if the current process is a background process /
child of a background process.
Is this okay, or should Get_Key wait for user input and then return -1?
fork the shell process from newshell, shell just prints '$' since it
calls Get_Key and exits as I have set up Get_Key to return -1 without
waiting for user input if the current process is a background process /
child of a background process.
Is this okay, or should Get_Key wait for user input and then return -1?