This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: AW: Starting Programms in the background
- To: cygwin <cygwin at sources dot redhat dot com>
- Subject: Re: AW: Starting Programms in the background
- From: Corinna Vinschen <vinschen at redhat dot com>
- Date: Thu, 02 Nov 2000 15:22:35 +0100
- References: <Pine.SO4.4.05.10011021136160.2996-100000@irz1.informatik.uni-kl.de>
- Reply-To: cygwin <cygwin at sources dot redhat dot com>
Bjoern Kahl AG Resy wrote:
>
> On Thu, 2 Nov 2000, Corinna Vinschen wrote:
>
> > klaus.berndl@sdm.de wrote:
> > > > > How can this be avoided, means how to exit bash regardless
> > > > of any still running background programs?
>
> > You're right, it happens on NT as well when starting
> > background processes from the console window. This does not happen when
> > starting background processes from a remote session via telnet/ssh.
> > Unfortunately you can't start GUI processes from a remote session.
>
> Hi!
>
> Just tried it too:
>
> bash exits cleanly, but the console-window stays open.
> (Tried
> bash> knews &
> <Ctrl-D>
>
> -> "ps" doesnt show the bash any longer,
> "knews" PPID get set to "1")
>
> Question:
> How to disconnect from controlling terminal under cygwin?
> There seems no ioctl defined to do that. (looked for some weeks ago).
setsid(2)
> Maybe the console-window goes away, if a small wrapper is used, that
> disconnects from controlling tty and closes all io-channels to the
> terminal (stdin,stdout,stderr), then exec()s the real app.
That doesn't help in the console window, only in remote sessions.
The daemons already do that and nohup(1) - which is that wrapper -
doesn't help either in the console window.
I'm somewhat surprised. I'm using remote sessions all the time and
I'm starting my daemons as services so I didn't realize that problem
in NT before.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@redhat.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com