This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin/1.3.20-1 bash child process disassociation behavior weirdness


>  Resent-To: Richard dot Broberg at mail dot inficon dot com
>  Resent-From: rhb at inficon dot com
>  From: "Max Bowsher" <maxb at ukf dot net>
>  Date: Sat, 8 Mar 2003 01:17:25 -0000
[snip]
>  
>  Richard H. Broberg wrote:
>  >>  From: "Max Bowsher" <maxb at ukf dot net>
>  >>
>  >>  An unfortunate consequence of how Windows handles console windows.
>  >>
>  >>  I believe it would be possible to write an alternative
>  >>  implementation of nohup using fork/setsid, or perhaps even hack
>  >>  some changes into the Cygwin DLL.
>  >>  But it's now just a configuration issue - it will take some coding.
>  >>
>  >
>  > hmm...I feared as much.  Can you give me details on 'of how Windows
>  > handles console windows'?
>  
>  Not specifically. I have a pretty good idea where I'd go looking to find
>  out, but I don't have the information at my fingertips.
>  
>  (I'd look at the MSDN AllocConsole/FreeConsole docs, and follow links from
>  there)
>  
>  > Surely it's not
>  > impossible; the windows' command 'start' basically 'does the right
>  > thing', and the semantics of 'start' are basically no different than
>  > 'nohup command &'.
>  
>  I've a feeling start will still open a console window.
>  
>  > When you say 'console windows' do you mean
>  > 'console linked app', as in the /SUBSYSTEM:CONSOLE silliness in
>  > win32 link-land?
>  
>  No, I mean the window Windows provides to run such apps in.
>  

hmm, and yet after seeing responses to this list that rxvt works
(which I verified for myself), I am compelled to believe that this
isn't the whole story.  The fact that rxvt works (without special
builtin hackery) makes me think that bash should be able to as well.
If the problem is truly the windows 'window' behavior (which I'm
not convinced it is either, see my 'look how the windows "start"
command works in a window), then why not have bash be in a window
more like rxvt instead of more like cmd.exe?

These are only suggestions at this point, of course, until I roll
up my sleeves to address the problem for real.  In the meantime I'll
happily use rxvt in place of bash, since it does what I need.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]