| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | Andrew DeFaria <Andrew DOT DeFaria AT tellabs DOT com> |
| Subject: | Unable to disown process |
| Date: | Wed, 06 Jul 2011 10:24:08 -0700 |
| Lines: | 21 |
| Message-ID: | <iv25no$u76$1@dough.gmane.org> |
| Mime-Version: | 1.0 |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
I have the following script that I use to tunnel nntp traffic:
#!/bin/bash
nohup ssh -NL 1119:news.mozilla.org:119 \
-L 2119:news.gmane.org:119 \
-L 3119:nntp.perl.org:119 \
andrew AT defaria DOT com > /dev/null 2>&1 &
disown
If I run this script it works fine and I'm tunneled. The problem is I
cannot exit the terminal in which I invoked this script. When I attempt
to do this the terminal hangs. I can close the terminal (mintty BTW)
forcefully and the ssh session remains but it was my understanding that
disown should allow you to exit the current shell with the
backgrounded/disowned process continuing to run. In fact I tested this
on RHEL and it worked as expected. What's up with Cygwin?
--
Andrew DeFaria <http://defaria.com>
Part of the inhumanity of the computer is that, once it is competently
programmed and working smoothly, it is completely honest. - Isaac Asimov
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |