]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
db: cancel injection thread when terminating
authorEric Leblond <eric@regit.org>
Sat, 25 Jan 2014 11:51:49 +0000 (12:51 +0100)
committerEric Leblond <eric@regit.org>
Sat, 25 Jan 2014 18:17:56 +0000 (19:17 +0100)
commit8a71482d3b0b5fc8954c1bbfac0cbd0e590efcfd
treef1de7398d5577d033afda422e784e05c20a4c5ce
parent24a66507871884203229bee9da29ae53c872103e
db: cancel injection thread when terminating

Injection thread was not cancelled when a termination signal was
sent. This was causing a crash in some cases. This patch fixes this
by canceling the thread when a SIGTERM or SIGINT signal is received.
util/db.c