Ultrix 4.1 setpgrp(0,0) fails, contrary to man page

Ian! D. Allen [CGL] idallen at watcgl.waterloo.edu
Tue Mar 5 11:19:32 AEST 1991


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 at watcgl.uwaterloo.ca idallen at watcgl.waterloo.edu
 [129.97.128.64]  Computer Graphics Lab/University of Waterloo/Ontario/Canada



More information about the Comp.unix.ultrix mailing list