cs412017
2005-09-16 00:30:35 UTC
Hi,
In discussion one of the slides said to not wait on a background
process to complete in shell.c. However, when we do not wait for a
background process, say for example b.exe to complete before passing
control back to the shell, then the shell could display the "$" prompt
before the newly spawned background process finishes executing. In the
case of b.exe, this looks rather ugly with the shell just waiting for
user input on a blank line as the $ sign is displayed somewhere in the
middle of the output for b.exe.
Is this okay?
In discussion one of the slides said to not wait on a background
process to complete in shell.c. However, when we do not wait for a
background process, say for example b.exe to complete before passing
control back to the shell, then the shell could display the "$" prompt
before the newly spawned background process finishes executing. In the
case of b.exe, this looks rather ugly with the shell just waiting for
user input on a blank line as the $ sign is displayed somewhere in the
middle of the output for b.exe.
Is this okay?