"Daemonizing" an application.

Vytas D. vytasd2013 at gmail.com
Wed Feb 27 08:46:58 EST 2013


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 <rosuav at gmail.com> wrote:

> On Thu, Feb 28, 2013 at 12:06 AM, Gilles Lenfant
> <gilles.lenfant at gmail.com> wrote:
> > Le mercredi 27 février 2013 11:52:19 UTC+1, Gilles Lenfant a écrit :
> >> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130227/c789368c/attachment.html>


More information about the Python-list mailing list