Fix `setpgrp': Operation not permitted in foreman