delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
From: | "Jason Pyeron" <jpyeron AT pdinc DOT us> |
To: | <cygwin AT cygwin DOT com> |
References: | <1270469274 DOT 15260 DOT ezmlm AT cygwin DOT com> <1270470129 DOT 16102 DOT 11 DOT camel AT erebor> |
Subject: | RE: nohup, non-cygwin processes |
Date: | Mon, 5 Apr 2010 08:50:34 -0400 |
Message-ID: | <A2DBAB86EE19477C9F08AD9E28D0AAC1@phoenix> |
MIME-Version: | 1.0 |
In-Reply-To: | <1270470129.16102.11.camel@erebor> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
> -----Original Message----- > From: Matthew B. Smith > Sent: Monday, April 05, 2010 8:22 > Subject: nohup, non-cygwin processes > > Hello > > I am writing about a problem probably not due to cygwin, but > I think it used to work with 1.5. > > I want to start a long running process with nohup and have it > continue to run even though I log out of the computer. It > seems no matter how I start the process I get a SYGTERM > signal when I log out of windows. > > This is a 64-bit java program but I seem to remember being > able to do this with nohup prior to upgrading to cygwin 1.7. It's a JVM issue, start the JVM with the parameter -Xrs to ignore this Logoff event signal. > > As an example if I login via ssh and start the process, it is > fine and I can log out, then log back in, but as soon as a > user logs out of windows it will terminate the java job. > This will happen even if I am ssh'd in with the process > running. (which is how I found the exit code 143) > $ java -version java version "1.6.0_07" Java(TM) SE Runtime Environment (build 1.6.0_07-b06) Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing) $ java -X <snip/> -Xrs reduce use of OS signals by Java/VM (see documentation) <snip/> The -X options are non-standard and subject to change without notice. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. -- 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 |