Re: [nox-dev] Signals (SIGHUP) sent to applications?

2008-11-24 Thread Teemu Koponen
On Nov 25, 2008, at 24:16 , Glen Gibb wrote: Actually, this specific problem doesn't have a cure in our local branch, but one can work around it using the reactor.callFromThread call which executes a function within the reactor's thread. The example below worked just fine on our local bran

Re: [nox-dev] Signals (SIGHUP) sent to applications?

2008-11-24 Thread Glen Gibb
Actually, this specific problem doesn't have a cure in our local branch, but one can work around it using the reactor.callFromThread call which executes a function within the reactor's thread. The example below worked just fine on our local branch and it *should* work with the noxrepo.org ve

Re: [nox-dev] Signals (SIGHUP) sent to applications?

2008-11-24 Thread Ben Pfaff
Martin Casado <[EMAIL PROTECTED]> writes: > You could always register a handler in C++ if you don't mind a > temporary hack you can just add it to src/nox_main.cc There is no need for a temporary hack, from C++. Just use Signal_group, defined in src/include/threads/signals.hh. But nox.cc

Re: [nox-dev] Signals (SIGHUP) sent to applications?

2008-11-23 Thread Teemu Koponen
On Nov 24, 2008, at 24:43 , Martin Casado wrote: Hmm, Teemu thinks he's fixed that in our local branch which probably doesn't do you much good atm. You could always register a handler in C++ if you don't mind a temporary hack you can just add it to src/nox_main.cc .martin On Nov 2

Re: [nox-dev] Signals (SIGHUP) sent to applications?

2008-11-23 Thread Martin Casado
Hmm, Teemu thinks he's fixed that in our local branch which probably doesn't do you much good atm. You could always register a handler in C++ if you don't mind a temporary hack you can just add it to src/nox_main.cc .martin On Nov 23, 2008, at 12:43 PM, Glen Gibb wrote: I'm afra

Re: [nox-dev] Signals (SIGHUP) sent to applications?

2008-11-23 Thread Glen Gibb
I'm afraid that trying to use signal gives the following error: ValueError: signal only works in main thread Martin Casado wrote: I think import signal signal(signal.SIGHUP, foo) should work. Is there an easy way to get a Nox python application to respond to SIGHUP? Thanks, Glen _

Re: [nox-dev] Signals (SIGHUP) sent to applications?

2008-11-22 Thread Martin Casado
I think import signal signal(signal.SIGHUP, foo) should work. Is there an easy way to get a Nox python application to respond to SIGHUP? Thanks, Glen ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.

[nox-dev] Signals (SIGHUP) sent to applications?

2008-11-21 Thread Glen Gibb
Is there an easy way to get a Nox python application to respond to SIGHUP? Thanks, Glen ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org