From user-return-8770-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Fri Feb 12 12:27:34 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 84845 invoked from network); 12 Feb 2010 12:27:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2010 12:27:34 -0000 Received: (qmail 55921 invoked by uid 500); 12 Feb 2010 12:27:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 55845 invoked by uid 500); 12 Feb 2010 12:27:32 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 55835 invoked by uid 99); 12 Feb 2010 12:27:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 12:27:32 +0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [195.85.130.99] (HELO smtp.atwork.nl) (195.85.130.99) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 12:27:21 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.atwork.nl (Postfix) with ESMTP id EB10714F875 for ; Fri, 12 Feb 2010 13:27:00 +0100 (CET) Received: from waldo.buyways.nl (atwork-154.r-212.178.116.atwork.nl [212.178.116.154]) by smtp.atwork.nl (Postfix) with ESMTP id E91CA14F75F for ; Fri, 12 Feb 2010 13:26:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by waldo.buyways.nl (Postfix) with ESMTP id A0DB43A1690 for ; Fri, 12 Feb 2010 13:26:48 +0100 (CET) Received: from waldo.buyways.nl ([127.0.0.1]) by localhost (waldo.buyways.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sZPMO1bGNd9S for ; Fri, 12 Feb 2010 13:26:48 +0100 (CET) Received: from zealand.localnet (beauregard.buyways.nl [192.168.217.1]) by waldo.buyways.nl (Postfix) with ESMTP id 889883A168F for ; Fri, 12 Feb 2010 13:26:48 +0100 (CET) From: Markus Jelsma Reply-To: markus@buyways.nl Organization: Buyways To: user@couchdb.apache.org Subject: Re: Fwd: Stopping externals Date: Fri, 12 Feb 2010 13:26:56 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic; KDE/4.3.2; i686; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201002121326.57128.markus@buyways.nl> X-Virus-Scanned: by @Work X-Virus-Checked: Checked by ClamAV on apache.org Hi Paul, CouchDB 0.10 does seem to have couchspawnkillable; couch-1 [~/apache-couchdb-0.10.0] # find -name "couchspawnkillable*" ./src/couchdb/priv/couchspawnkillable_win.c ./src/couchdb/priv/couchspawnkillable ./src/couchdb/priv/couchspawnkillable.sh ./src/couchdb/priv/.deps/couchspawnkillable_win.Po Can you confirm this is the desired output? Anyway, if so there might probably be a bug then because the replicator does not quit with CouchDB. I am not entirely sure whether the replicator checks for a terminating pipe but i guess it does. Here is the Python code that sits in the main loop: stuff = sys.stdin.readline() if not stuff: return Perhaps a lounge developer can tell us whether the replicator actually behaves as Troy suggested. Cheers, >Don't recall when that came in. To check: > >$ find $PREFIX/lib/couchdb -name "couchspawnkillable*" > >If that finds something then it should be new enough to theoretically >kill things. > >Also, you should still use Troy's pattern for reading from stdin to be >well behaved for the case that we have a bug. :) > >HTH, >Paul Davis > >Managed to forget the ML in my reply. Markus Jelsma - Technisch Architect - Buyways BV http://www.linkedin.com/in/markus17 050-8536620 / 06-50258350