From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16418 invoked by alias); 5 May 2011 04:30:16 -0000 Received: (qmail 16405 invoked by uid 22791); 5 May 2011 04:30:14 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qw0-f43.google.com (HELO mail-qw0-f43.google.com) (209.85.216.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 May 2011 04:30:01 +0000 Received: by qwf6 with SMTP id 6so1682553qwf.2 for ; Wed, 04 May 2011 21:30:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.26.213 with SMTP id f21mr1337973qcc.217.1304569800284; Wed, 04 May 2011 21:30:00 -0700 (PDT) Received: by 10.229.13.9 with HTTP; Wed, 4 May 2011 21:30:00 -0700 (PDT) Date: Thu, 05 May 2011 04:30:00 -0000 Message-ID: Subject: Background processes prevent terminal window from closing From: Ryan Dortmans To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-05/txt/msg00028.txt.bz2 Hi, I have found that background processes prevent the terminal window from closing. I have tried with the cmd terminal as well as mintty. Here is a simple example: $ notepad .profile & [1] 10260 $ exit logout The window remains until I close the notepad window. I have also reproduced the issue using a simple looping shell script instead of a windows program. I thought that running disown would detach the process to turn it into a daemon, but this has no effect. Is there any way to detach running background processes such that the terminal can be closed? Cheers, Ryan Dortmans -- 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