8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 07:23:03 +01:00

Fixed call setpgrp().

This commit is contained in:
eku 2003-11-11 06:52:04 +00:00
parent 3605a3ef08
commit c9b775ab6a

View File

@ -1064,10 +1064,17 @@ static void divorce_terminal(fd_set * mask)
}
// Finally, get out of the process group
// BRS dirty patch to be able to build, this call should be replaced
// s = setpgrp(0,0);
//
#ifdef HAVE_SETPGRP
#ifdef SETPGRP_VOID
s = setpgrp();
#else
s = setpgrp(0, 0);
#endif /* SETPGRP_VOID */
#else
#ifdef HAVE_SETPGID
s = setpgid(0, 0);
#endif /* HAVE_SETPGID */
#endif /* HAVE_SETPGRP */
}
#endif
#endif