From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32755 invoked by alias); 17 Dec 2014 18:36:02 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 32740 invoked by uid 89); 17 Dec 2014 18:36:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yh0-f47.google.com Received: from mail-yh0-f47.google.com (HELO mail-yh0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 17 Dec 2014 18:35:59 +0000 Received: by mail-yh0-f47.google.com with SMTP id f73so7400860yha.20 for ; Wed, 17 Dec 2014 10:35:57 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.236.17.198 with SMTP id j46mr31885834yhj.171.1418841357678; Wed, 17 Dec 2014 10:35:57 -0800 (PST) Received: by 10.170.233.6 with HTTP; Wed, 17 Dec 2014 10:35:57 -0800 (PST) In-Reply-To: References: <548C82A3.9080604@gmail.com> <54905E8F.40809@ucsd.edu> <9439619875edc65b1e7152b743ad5553@saf.bio.caltech.edu> Date: Wed, 17 Dec 2014 18:36:00 -0000 Message-ID: Subject: Re: startxwin.exe no longer exists? From: Erik Soderquist To: cygwin-xfree@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00046.txt.bz2 >> So you want your script to completely mask and/or destroy any evidence >> that something crashed?? > > > No, that is the log file, this is the lock file. It should rotate the log > file from the previous run and delete the lock file. How often do you check your log files for crashes when you have your script hiding the fact that it crashed from you? > >> >> Also, as the X server is not bound to a tty, it forks to the >> background on its own anyway, so your pseudocode example would delete >> the lock file just after the X server started. > > > In that case the the script needs to retrieve the PID of the forked process > and wait for it to exit. I would much rather have the binary process clean up after itself like it is supposed to, and figure out why the binary process is failing to do so when it doesn't than have a script that hides such failures from me. To each its own though. -- Erik -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/