i would agree  i first implemented killprocessgroup by calling the syscalls directly  which i think makes sense  kill should allow you to send any signal  but not to kill any process  the options here are doing that  make killprocessgroup independently of process  kill and then fixing process  kill  or fixing process  kill and make it safe to be called with a negative pid  maybe add a boolean kill process group to kill what do you think 