Simple setsid replacement, nothing special about it
except it being really simple.
MIT/X Consortium License