added pid to mk_daemon.c