remove HAVE_SETPGRP, because it doesn't detach terminal