main: Use signalfd instead of raw signals
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 2 Jul 2013 11:10:14 +0000 (13:10 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 2 Jul 2013 11:10:14 +0000 (13:10 +0200)
commit45e83de0ac116b5b1c2e3c23a40c6cde3be1f844
treec2fdcda2d8d66447c0cc38e2bdd248851eac66e1
parent9f0e1bdd7a802e8d24b0ee1314625a77708f5d40
main: Use signalfd instead of raw signals

Copied from ConnMan's commit 6ad51830 where Daniel Wagner was
explaining:

   "It's unsafe to call syslog in the terminated signal handler
    because syslog takes a lock. So when the signal handler
    kicks in and we were already in syslog, we have a nice
    deadlock."
src/main.c