View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum ↗

iraf-v216 · Code · Issues (50) · Pull requests (81)

iraf.net pull request #78

[macintel] Replace setpgrp(…) with POSIX setpgid()

merge olebole merged 1 commit to iraf-community/iraf


olebole commented on 2017-05-25

Replace setpgrp(...) with POSIX setpgid()

The latter has an API independent of the Unix version, so we avoid compilation errors f.e. macosx on newer MacOSX versions, like here:

zmain.c:139:12: error: too many arguments to function call, expected 0, have 2  
                setpgrp (0, jobcode);  
                ~~~~~~~  ^~~~~~~~~~  
/usr/include/unistd.h:591:1: note: 'setpgrp' declared here  
pid_t    setpgrp(void) __DARWIN_ALIAS(setpgrp);  
^  
1 error generated.  

Instead of fiddling with the exact conditions when to use which interface, this patch replaces with the interface that is common on all platforms.


Commits


Last updated on 2017-06-08