X-Recipient: archive-cygwin AT delorie DOT com 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 MIME-Version: 1.0 Date: Thu, 5 May 2011 14:30:00 +1000 Message-ID: Subject: Background processes prevent terminal window from closing From: Ryan Dortmans To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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