[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ifdef setpgid() usage in lib/spawni.c for Minix
From: |
Thomas Cort |
Subject: |
ifdef setpgid() usage in lib/spawni.c for Minix |
Date: |
Fri, 15 Jul 2011 07:38:48 -0400 |
Hello,
I've been working on pkgsrc for the Minix project and we've been
patching lib/spawni.c in several packages (bison, gettext, m4, ...)
because Minix lacks setpgid(). I lack the autotools and gnulib
knowledge to patch & test gnulib itself, but in general the fix would
involve adding a check for setpgid() and ifdef'ing out the part of
spawni.c that sets the process group id. So, something like this...
m4/posix_spawn.m4?:
AC_CHECK_FUNCS([setpgid])
lib/spawni.c:
#ifdef HAVE_SETPGID
/* Set the process group ID. */
if ((flags & POSIX_SPAWN_SETPGROUP) != 0
&& setpgid (0, attrp->_pgrp) != 0)
_exit (SPAWN_ERROR);
#endif
Thanks,
Thomas
- ifdef setpgid() usage in lib/spawni.c for Minix,
Thomas Cort <=
Minix support, part 2, Bruno Haible, 2011/07/31
Minix support, part 3, Bruno Haible, 2011/07/31
Minix support, part 4, Bruno Haible, 2011/07/31