From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,116d2dc2c007de2d X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-08-24 06:26:45 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!harris Subject: Re: a question about system program From: Bob Harris Newsgroups: comp.unix.tru64 Posted-And-Mailed: yes Message-ID: <240820010926439847%harris@zk3.dec.com> References: <230820010921513249%harris@zk3.dec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8bit User-Agent: YA-NewsWatcher/5.0.1 Date: Fri, 24 Aug 2001 09:26:43 -0400 NNTP-Posting-Host: 16.140.32.194 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 998659604 16.140.32.194 (Fri, 24 Aug 2001 06:26:44 PDT) NNTP-Posting-Date: Fri, 24 Aug 2001 06:26:44 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:4350 [[ This message was both posted and mailed: see the "To," "Cc," and "Newsgroups" headers for details. ]] In article , jing 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