From owner-freebsd-python@FreeBSD.ORG Thu Jul 29 00:56:24 2010 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D1A51065674 for ; Thu, 29 Jul 2010 00:56:24 +0000 (UTC) (envelope-from andymac@bullseye.apana.org.au) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id 86AB18FC15 for ; Thu, 29 Jul 2010 00:56:23 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApAFAB9pUEx5LcmZ/2dsb2JhbACTNIxTcsMzhTgE Received: from ppp121-45-201-153.lns20.cbr1.internode.on.net (HELO bullseye.apana.org.au) ([121.45.201.153]) by ipmail06.adl6.internode.on.net with ESMTP; 29 Jul 2010 10:11:04 +0930 Received: from [192.168.63.10] (tenring.andymac.org [192.168.63.10]) by bullseye.apana.org.au (8.14.2/8.14.2) with ESMTP id o6T0heHv056085 for ; Thu, 29 Jul 2010 10:43:40 +1000 (EST) (envelope-from andymac@bullseye.andymac.org) Message-ID: <4C50CA3D.7030005@bullseye.andymac.org> Date: Thu, 29 Jul 2010 10:24:29 +1000 From: Andrew MacIntyre User-Agent: Thunderbird 2.0.0.23 (OS/2/20090822) MIME-Version: 1.0 To: freebsd-python@freebsd.org References: <4C4FAF05.7060600@speakeasy.net> In-Reply-To: <4C4FAF05.7060600@speakeasy.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: porting python script from linux to freebsd X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2010 00:56:24 -0000 Rocky Borg wrote: > I hope this is the right place to direct this question. I've been trying > to track down a python issue that is specific to freebsd. The Cherokee > webserver (http://www.freshports.org/www/cherokee/) has a python gui > backend to admin the server. It works perfectly under Linux. > Unfortunately it doesn't work correctly under FreeBSD. There aren't a > lot of people that use FreeBSD to run cherokee so the main developers > don't seem to interested in fixing it. I'm trying to track down the bug. > > If cherokee is started from rc.d scripts or command line it works fine. > You can stop the server cleanly. But once it's started from the admin > interface (which uses python) it can't be stopped. The admin interface > shows that it sees cherokee running on the correct pid but once started > from the admin interface the server can't be stopped > (/usr/local/etc/rc.d/cherokee stop stops working also). Any information > would be greatly appreciated since it's hard finding issues specific to > freebsd/python. And the basic attitude seems to be if it works on linux > that's good enough. > > Has anyone experienced this sort of problem on FreeBSD or perhaps could > direct me to something that would explain what's going on. > > Bug report on the issue: > > http://code.google.com/p/cherokee/issues/detail?id=527 > http://www.cherokee-project.com > > Script that handles starting and stopping the server: > > http://www.ctwow.net/sladeimages/Cherokee.py > > Any help would be greatly appreciated. Can't offer specific help, but anything involving signals and/or threads is a likely place to start investigating -- ------------------------------------------------------------------------- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac@bullseye.apana.org.au (pref) | Snail: PO Box 370 andymac@pcug.org.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia