Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 6566 invoked from network); 7 Jun 2009 01:34:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jun 2009 01:34:19 -0000 Received: (qmail 60793 invoked by uid 500); 7 Jun 2009 01:34:29 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 60690 invoked by uid 500); 7 Jun 2009 01:34:29 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 60661 invoked by uid 99); 7 Jun 2009 01:34:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2009 01:34:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2009 01:34:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5744A234C004 for ; Sat, 6 Jun 2009 18:34:07 -0700 (PDT) Message-ID: <2073819376.1244338447343.JavaMail.jira@brutus> Date: Sat, 6 Jun 2009 18:34:07 -0700 (PDT) From: "Mark Hammond (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-374) couchspawnkillable doesn't work on windows In-Reply-To: <1421375937.1244011447338.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hammond updated COUCHDB-374: --------------------------------- Attachment: couchspawnkillable_win.c I noticed that depending on how erlang itself is started, couchspawnkillable may not have a valid stderr, so would fail. This new version only considers failure to duplicate stdin and stdout fatal and ignores failure duplicating stderr. > couchspawnkillable doesn't work on windows > ------------------------------------------ > > Key: COUCHDB-374 > URL: https://issues.apache.org/jira/browse/COUCHDB-374 > Project: CouchDB > Issue Type: Bug > Environment: windows > Reporter: Mark Hammond > Attachments: couchspawnkillable_win.c > > > The shell script 'couchspawnkillable' doesn't work on windows, meaning lots of things are broken in the trunk. It might be possible to bash cygwin/msys etc to work, but I think a better solution for windows is a custom little C app which does the same basic thing. > I've attached the source for such an app and it works for me. It creates a suspended child process with the same handles as us, then echos the 'kill' command, then spawns the real app and terminates. The 'kill command' is a reference to the same couchspawnkillable.exe but with a '--kill' command-line. I've not tried to integrate with a build system, but simple instructions are at the top of the file. > Attaching it here so it doesn't get lost... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.