Make -d switch work again
authorPavel Labath <pavelo@centrum.sk>
Tue, 22 Sep 2009 16:19:08 +0000 (18:19 +0200)
committerPavel Labath <pavelo@centrum.sk>
Tue, 22 Sep 2009 16:19:08 +0000 (18:19 +0200)
commitbfda28556799a0a162fd862a5e22a9a8c526d346
tree3780cd01a34053272f786ff1e2fd17b8c7c5bc11
parent5c67c0dc97d7310a1d069c85af421accaab68d7f
Make -d switch work again

-d was broken because fork-to-background was done after the update thread creation, so the
threads ended up in the wrong process. This delays the thread creation until after the fork.
src/common.c
src/common.h
src/conky.c