sensord: lazy loading atexit() because static variables is used in atexit() 64/60864/1
authorkibak.yoon <kibak.yoon@samsung.com>
Wed, 2 Mar 2016 14:38:31 +0000 (23:38 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Wed, 2 Mar 2016 14:38:31 +0000 (23:38 +0900)
commit672dffa735835a38540fe397675f47c9819e1388
tree6d7a201745a7ce2d9785ef75e44dad82c843ccee
parent5ef1fad6591e4fd56014bdcb35ca2eab17b9dc26
sensord: lazy loading atexit() because static variables is used in atexit()

- if atexit() is called before the declaration of static variables,
  they can be released while the registered callback is processing.
- so atexit() function has to be called lazily.

Change-Id: I2feef2013d01470559ad51f8712fbd8ea9f2ae02
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/client/client.cpp