]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
serv.py: Give pr-server up to 5 seconds to commit data
authorKonrad Scherer <Konrad.Scherer@windriver.com>
Fri, 15 Nov 2013 20:51:47 +0000 (15:51 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Nov 2013 17:18:40 +0000 (17:18 +0000)
commit22eec978e70794923c85689928c6be0cfe71cdcd
tree3366c6d895cc7aee9fdef87fad28fff1522675ff
parent89abfbc1953e3711d6c90aff793ee622c22609b1
serv.py: Give pr-server up to 5 seconds to commit data

The default value of 0.5 seconds before sending the pr-server a
SIGTERM is not enough to guarantee that sqlite has committed all
the pr data to the database. By polling the pid to see if it is
still running, this allows the pr-server process to shutdown
cleanly and finish the final pr data commit.

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/prserv/serv.py