Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Bob Harris <harris@zk3.dec.com>
Subject: Re: a question about system program
Date: Fri, 24 Aug 2001 09:26:43 -0400	[thread overview]
Message-ID: <240820010926439847%harris@zk3.dec.com> (raw)
In-Reply-To: a22a0b3c.0108231738.37f70c68@posting.google.com

[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]

In article <a22a0b3c.0108231738.37f70c68@posting.google.com>, jing
<jing116@263.net> wrote:

X  Thanks to Bob's quickly response!
X  Now my problem is I cann't set the function of setpgid or setpgrp's
X  parameter to be void,but from menual I see it can be void.My os is
X  Tru64UNIX 5.1,maybe this is the reason?

I just looked at the man page for setpgid() and setpgrp() and it does
look confusing.  It would appear that the number and type of arguments
is a function of which compiler options are specified.

You may want to read the "man 5 standards" man page and see which
compiler options are needed to use setpgrp(void) syntax.  I do not
think setpgid(void) is ever valid, only setpgrp(void) if and only if
the right compiler switches are specified.

Of course the question is, why do you even care to use the
setpgrp(void) notation.  It would seem that setpgid(0,0) should do the
same things as setpgrp(void).

But then again, I do not play in this space, so I am just going by what
I'm reading in the man pages.  Since I have not first hand experience
using either of these functions, I'll defer to someone that knows more
about them.

                                        Bob Harris


      reply	other threads:[~2001-08-24 13:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-23  8:32 a question about system program jing
2001-08-23 13:21 ` Bob Harris
2001-08-24  1:38   ` jing
2001-08-24 13:26     ` Bob Harris [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox