Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #71040

Re: python-daemon interaction with multiprocessing (secure-smtpd)

From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: python-daemon interaction with multiprocessing (secure-smtpd)
Date 2014-05-07 17:55 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <lkds31$dqv$1@reader1.panix.com> (permalink)
References <lkdp2i$s9c$1@reader1.panix.com>

Show all headers | View raw


On 2014-05-07, Grant Edwards <invalid@invalid.invalid> wrote:
> With Python 2.7.5, I'm trying to use the python-daemon 1.6 and its
> DaemonRunner helper with the seucre-smtpd 1.1.9 which appears to use
> multiprocessing and a process pool under the covers.  There seem to be
> a couple process issues:
>
>  1) The pid file created by DaemonRunner disappears.  This seems to
>     happen when the SMTP client closes the connection without saying
>     goodbye first.

Hmm.  After some further testing, it looks like it often disappears as
soon as the first connection is accepted (which I think is when the
first worker process is created).

>     How do you terminate a Python program that's using multiprocessing?

It looks like you have to kill all the threads individually.  :/

-- 
Grant Edwards               grant.b.edwards        Yow! We are now enjoying
                                  at               total mutual interaction in
                              gmail.com            an imaginary hot tub ...

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

python-daemon interaction with multiprocessing (secure-smtpd) Grant Edwards <invalid@invalid.invalid> - 2014-05-07 17:04 +0000
  Re: python-daemon interaction with multiprocessing (secure-smtpd) Grant Edwards <invalid@invalid.invalid> - 2014-05-07 17:55 +0000
    Re: python-daemon interaction with multiprocessing (secure-smtpd) Ben Finney <ben@benfinney.id.au> - 2014-05-08 05:01 +1000
      Re: python-daemon interaction with multiprocessing (secure-smtpd) Grant Edwards <invalid@invalid.invalid> - 2014-05-07 19:11 +0000
        Re: python-daemon interaction with multiprocessing (secure-smtpd) Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2014-05-07 21:45 +0200
  Re: python-daemon interaction with multiprocessing (secure-smtpd) Grant Edwards <invalid@invalid.invalid> - 2014-05-07 21:07 +0000

csiph-web