Newsgroups: comp.unix.ultrix
Path: utzoo!utgpu!watserv1!watcgl!idallen
From: "Ian! D. Allen [CGL]" <idallen@watcgl.waterloo.edu>
Subject: Ultrix 4.1 setpgrp(0,0) fails, contrary to man page
Message-ID: <1991Mar5.011932.25328@watcgl.waterloo.edu>
Sender: idallen@watcgl.waterloo.edu (Ian! D. Allen [CGL])
Organization: Computer Graphics Laboratory, University of Waterloo, Ontario, Canada
Date: Tue, 5 Mar 1991 01:19:32 GMT
Lines: 23

The man page for setpgrp() says I can do anything I want to my own
processes, and indeed under 4.3BSD I can.  But you can't do this on
Ultrix 4.1 (or Ultrix 3.x) any more:

    main()
    {
	    if( setpgrp(0,0) == -1 )
		    perror("setpgrp(0,0)");
	    if( setpgrp(getpid(),0) == -1 )
		    perror("setpgrp(getpid(),0)");
    }

You get this:

    setpgrp(0,0): Not owner
    setpgrp(getpid(),0): Not owner

This should be an SPR, but I don't have a typewriter handy.

ULTRIX V4.1 (Rev. 52) on a DS5400
-- 
-IAN! (Ian! D. Allen) idallen@watcgl.uwaterloo.ca idallen@watcgl.waterloo.edu
 [129.97.128.64]  Computer Graphics Lab/University of Waterloo/Ontario/Canada
