wrap tcsetpgrp call in some sanity checks to avoid Invalid Argument errors
wrap tcsetpgrp call in some sanity checks to avoid Invalid Argument errors

fedora-conary/conary,fedora-conary/conary,fedora-conary/conary,fedora-conary/conary,fedora-conary/conary