Hi Daniel, > >> It's unsafe to call syslog in the terminat signal handler > >> because syslog takes an lock. So when the signal handler > >> kicks in and we were already in syslog, we have a nice > >> deadlock. > >> --- > >> src/main.c | 59 > >> +++++++++++++++++++++++++++++++++++++++++++++++++++-------- > >> 1 files changed, 51 insertions(+), 8 deletions(-) > > > > so I cherry-picked this patch out of this patch series and applied it. > > Thanks! Finally Ctrl-C works all the time :)
of course now the tricky part is to get also the final disconnect command scheduled while still running the mainloop before finally exiting it. That was the reason we did it with oFono in the first place. So we can shutdown all modems. And GAtChat needed the mainloop for doing that. Regards Marcel _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
