On Wed, 17 Sep 2014 13:51:37 +0200, =?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges- Anglas?= wrote:
> However I don't think that changing our setpgrp definition would bring > much (any?) benefit. The mismatch here between SysV and BSD is known > since a long time, and I bet that a bunch of stuff in ports will use the > BSD idiom inside simple #ifdef BSD checks. I have no idea right now of > the number of ports that would be affected, but the efforts spent by > porters on this issue should considered. I don't feel strongly about this. Net and Free still use the BSD-style setpgrp whereas Mac OS X supports both depending on some compatibility defines. We could do something similar where the BSD setpgrp() is exposed for _BSD_SOURCE (the default) and the POSIX version if not. This means that when someone defines _POSIX_SOURCE or _POSIX_C_SOURCE they would get the POSIX definition. I'm not sure it is worth the trouble, though. - todd
