fix setsid bug when listen port less than 1024