lock pidfile before listening socket in chap-proxy
replace singal with sigaction in chap-proxy daemon