Discussion:
Testing of background processes
(too old to reply)
cs412017
2005-09-20 04:27:38 UTC
Permalink
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?
Saurabh Srivastava
2005-09-20 15:49:19 UTC
Permalink
| 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?

this is ok.

Loading...