[Zope-Checkins] CVS: ZODB3/zdaemon - Daemon.py:1.23
Chris McDonough
chrism at plope.com
Fri Jan 2 16:53:28 EST 2004
Y'know Fred, I don't even know if this code is necessary now. I haven't
tried taking it out, but AFAIK signals are inherited from the process
group leader (which I think is the main thread, or zopectl if it's
started with Zopectl). Not that I want to do anything about it now, but
in the future I think this bit should be revisited.
On Fri, 2004-01-02 at 17:25, Fred L. Drake, Jr. wrote:
> Update of /cvs-repository/ZODB3/zdaemon
> In directory cvs.zope.org:/tmp/cvs-serv22768
>
> Modified Files:
> Daemon.py
> Log Message:
> tolerate signals missing on some platforms, so the Windows holdouts
> don't get too annoyed ;-)
>
>
> === ZODB3/zdaemon/Daemon.py 1.22 => 1.23 ===
> --- ZODB3/zdaemon/Daemon.py:1.22 Fri Jan 2 16:14:11 2004
> +++ ZODB3/zdaemon/Daemon.py Fri Jan 2 17:25:03 2004
> @@ -33,14 +33,14 @@
> if signum in [signal.SIGTERM, signal.SIGINT]:
> raise DieNow
>
> -PASSED_SIGNALS = (
> - signal.SIGHUP,
> - signal.SIGINT,
> - signal.SIGQUIT,
> - signal.SIGUSR1,
> - signal.SIGUSR2,
> - signal.SIGTERM,
> - )
> +
> +PASSED_SIGNALS = ()
> +
> +for signame in ("SIGHUP", "SIGINT", "SIGQUIT",
> + "SIGUSR1", "SIGUSR2", "SIGTERM"):
> + if hasattr(signal, signame):
> + PASSED_SIGNALS += (getattr(signal, signame),)
> +
>
> def run(argv, pidfile=''):
> if os.environ.has_key('ZDAEMON_MANAGED'):
>
>
> _______________________________________________
> Zope-Checkins maillist - Zope-Checkins at zope.org
> http://mail.zope.org/mailman/listinfo/zope-checkins
More information about the Zope-Checkins
mailing list