On Mon, 01 Dec 2003 11:15:33 +0300
Eugene Crosser <[EMAIL PROTECTED]> wrote:

> On Sat, 2003-11-29 at 19:20, Gianmarco wrote:
> > On Saturday 29 November 2003 16:49, Gianmarco wrote:
> > > The function setpgrp() seems to need 2 parameters in FreeBSD:
> > > [...]
> > >                 setpgrp();
> > 
> > 
> > changing to :
> >                setpgrp(0,getpid());
> > 
> > but I don't know if it is the same thing you want to achive with the
> > current code, because I am not a C programmer at all :-)
> 
> "Standard" way to deal with setpgrp is to have this in configure.in:
> 
> AC_CHECK_FUNCS(... setsid ...)
> AC_FUNC_SETPGRP
> 
> and this in the C code:
> 
> #ifdef HAVE_SETSID
>                         setsid();
> #else
> #ifdef HAVE_SETPGRP
> #ifdef SETPGRP_VOID
>                         setpgrp();
> #else
>                         setpgrp(0,0);
> #endif
> #endif
> #endif

Thanks, that works just fine.

Best regards,
Tomasz Kojm
-- 
      oo    .....       [EMAIL PROTECTED]         www.ClamAV.net
     (\/)\.........     http://www.clamav.net/gpg/tkojm.gpg
        \..........._   0DCA5A08407D5288279DB43454822DC8985A444B
          //\   /\      Mon Dec  1 23:44:03 CET 2003

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to