setpgrp: Deviation from manual

From: Joerg Bruehe <joerg_at_sql.de>
Date: Tue, 11 Jan 2000 18:44:38 +0100

Dear admins,

I just encountered a programming problem (Tru64 4.0D):

According to my understanding of 'man setpgrp',
this function can be called either without any parameters
(current standard) or with 2 (old, for backwards compatibility);
and without parameters it is said not to return any errors
(= cannot fail).

I called it without parameters, and I got the return code '-1'
and the errno value 'ESRCH'.

So I ask:
- Did I misunderstand the manual ?
- Do I need some C "define" to get the no-param-version to work ?

TIA
Joerg Bruehe

-- 
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
     (speaking only for himself)
mailto: joerg_at_sql.de
Received on Tue Jan 11 2000 - 17:44:28 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT