Background processes prevent terminal window from closing

Ryan Dortmans ryandort.cygwin@gmail.com
Thu May 5 04:30:00 GMT 2011


Hi,

I have found that background processes prevent the terminal window
from closing. I have tried with the cmd terminal as well as mintty.
Here is a simple example:

$ notepad .profile &
[1] 10260
$ exit
logout

The window remains until I close the notepad window. I have also
reproduced the issue using a simple looping shell script instead of a
windows program.

I thought that running disown would detach the process to turn it into
a daemon, but this has no effect.

Is there any way to detach running background processes such that the
terminal can be closed?

Cheers,

Ryan Dortmans

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list