avoid PATH_MAX in bss in daemonize
authorAndy Green <andy.green@linaro.org>
Mon, 21 Jan 2013 02:36:12 +0000 (10:36 +0800)
committerAndy Green <andy.green@linaro.org>
Mon, 21 Jan 2013 02:36:12 +0000 (10:36 +0800)
commitf862463e2e97ac1381fc6d5581fa653cc3de9fad
tree3a67eddfa9c136f3422faa604280cf84ff51adc7
parent5738c0e838c7b4e95310a159a478325261205fe7
avoid PATH_MAX in bss in daemonize

PATH_MAX is typically 4KB, let's malloc space for the
actual path instead and just have the pointer in bss

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/daemonize.c