Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'feature.': 0.07; 'indexing': 0.07; 'before.': 0.09; 'complicate': 0.09; 'pointers': 0.09; 'cc:addr:python-list': 0.10; 'file,': 0.15; '>>': 0.16; '(just': 0.16; 'accesses': 0.16; 'gilles': 0.16; 'mapped': 0.16; 'processes.': 0.16; 'simplest': 0.16; 'xml-rpc,': 0.16; '\xe9crit': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'memory': 0.18; 'app': 0.19; 'feb': 0.19; 'email addr:gmail.com>': 0.20; 'os,': 0.22; 'cc:2**0': 0.23; '>': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'handling': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'url:mailman': 0.29; '(and': 0.32; 'problem.': 0.32; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'received:google.com': 0.34; 'thanks': 0.34; 'open': 0.35; 'pm,': 0.35; 'url:org': 0.36; 'subject:" ': 0.36; "i'll": 0.36; 'possible': 0.37; 'two': 0.37; 'files': 0.38; 'things': 0.38; 'space': 0.39; 'hello,': 0.39; 'help': 0.40; 'url:mail': 0.40; 'your': 0.60; 'first': 0.61; 'solve': 0.62; 'learned': 0.65; 'stated': 0.69; 'sounds': 0.71; '2013': 0.84; 'are)': 0.84; 'good!': 0.84; 'ideas.': 0.91; 'tied': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=WfLOpXJWZwJEQvJT63PtSejPdfnbnZ991nHfgNOzrTk=; b=khb4/rH6YDGueOLNy3TFNhuT/SjoIs0MNCRPcSiZ9ziZ2C7YNww4l6AlP1CzfpOjlX 7ZUIdAezBE5hOqydWwozqhQlYId00C7FhLK53o960WwvNupWanPy/qDHYqFVDaDw8vB5 NUpztKtznpG2DvooNkDSy4+l6JDtSleXhlBvHPU1ppGu4C23v+8hQF2tMtvVSsHCtZkX UzQ9Zgq9FdvSpxC56ajBQXkikC2Z/FwmkbHnsXb+7FMKMACwR8uxrzCTPCqoq83htsIL KiVtRePuqG1mgKYi7hiSgjGGx4IqKrGuE9pbbWFyhHAFTx9Ry46zSQavXw4xrxyk5E5s vrQQ== MIME-Version: 1.0 X-Received: by 10.181.12.103 with SMTP id ep7mr26367632wid.12.1361972818947; Wed, 27 Feb 2013 05:46:58 -0800 (PST) In-Reply-To: References: <3e4921b7-fde3-4de7-ab01-1c98ddf63363@googlegroups.com> <772c38fc-7ab7-4aeb-9127-29d21e5b1845@googlegroups.com> Date: Wed, 27 Feb 2013 13:46:58 +0000 Subject: Re: "Daemonizing" an application. From: "Vytas D." To: Chris Angelico Content-Type: multipart/alternative; boundary=f46d0438eddb113cd804d6b502f8 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 94 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361972820 news.xs4all.nl 6917 [2001:888:2000:d::a6]:59851 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40062 --f46d0438eddb113cd804d6b502f8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, Just recently learned about memory-mapped files (module mmap). If two processes open the same file, this file is mapped for both processes. So at the same time the same memory space can be accesses by two processes. The documentation stated that memory-mapped files can (and are) used for inter-process communication. Also, you can work with the memory-mapped files using indexing (just like strings). So you might want to have a look at memory-mapped files if not considered before. Might help to solve your problem. Vytas On Wed, Feb 27, 2013 at 1:21 PM, Chris Angelico wrote: > On Thu, Feb 28, 2013 at 12:06 AM, Gilles Lenfant > wrote: > > Le mercredi 27 f=E9vrier 2013 11:52:19 UTC+1, Gilles Lenfant a =E9crit = : > >> Hello, > >> > > Hello again, > > > > And thanks to all for your pointers and ideas. > > > > As the app is already tied to an Unix like OS, I'll go with signal > handling first since I can do all I need through reconfiguration (SIGHUP)= . > > > > If I need other controls, I shall use an XML-RPC, since it's an OTB > feature. > > Sounds good! Definitely go with the simplest possible solution first; > you can always complicate things later. > > ChrisA > -- > http://mail.python.org/mailman/listinfo/python-list > --f46d0438eddb113cd804d6b502f8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

Just recently learned about = memory-mapped files (module mmap). If two processes open the same file, thi= s file is mapped for both processes. So at the same time the same memory sp= ace can be accesses by two processes. The documentation stated that memory-= mapped files can (and are) used for inter-process communication. Also, you = can work with the memory-mapped files using indexing (just like strings).
So you might want to have a look at memory-mapped files if n= ot considered before. Might help to solve your problem.

Vytas
--f46d0438eddb113cd804d6b502f8--