checking for forking in nginx agent daemon