On Thu, Jul 17, 2014 at 12:40 PM, Samuel Thibault
wrote:
> David Michael, le Wed 16 Jul 2014 21:56:36 -0400, a écrit :
>> +/* Exit the console client on SIGTERM. */
>> +static void
>> +signal_handler (int signum)
>> +{
>> + if (signum == SIGTERM)
>> +console_exit ();
>> +}
>
> We can't just c
David Michael, le Wed 16 Jul 2014 21:56:36 -0400, a écrit :
> +/* Exit the console client on SIGTERM. */
> +static void
> +signal_handler (int signum)
> +{
> + if (signum == SIGTERM)
> +console_exit ();
> +}
We can't just call console_exit() in the middle of the signal handler:
SIGTERM could
* console-client/console.c: Include signal.h.
(signal_handler): New function.
(main): Register signal_handler to trap SIGTERM.
---
Hi,
I've been fiddling with running the console client as a system service
so it can be started and stopped with, e.g., "deco stop console" or
"service console start"