Why does exiting bash window kill off Gvim? (Windows version, but X-would be same question)

Andy Koppe andy.koppe@gmail.com
Tue Dec 8 10:06:00 GMT 2009


2009/12/4 Christopher Faylor:
>>Hang on, if I do this:
>>
>>$ setsid gvim -display :0 &
>>
>>in a bash console and then close the console, gvim continues to work,
>>so either setsid or gvim itself does detach from the console.
>
> That makes sense.  Cygwin sends explicit SIGHUPs to other members of the
> console process group when it receives a CTRL_CLOSE_EVENT.  setsid should
> fix that.
>
> You shouldn't need the '&' in the above scenario.  Did that actually make
> a difference?

I hadn't even tried without, and you're right, setsid doesn't wait for
the program to finish anyway.

Andy

--
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