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

Reply via email to