$isdaemon = daemonize() if ($isdaemon ne "1") { print "error: $isdaemon"; }