Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!gwspc!cbcsta!n8emr!lwv From: lwv@n8emr.UUCP Newsgroups: comp.unix.questions Subject: BSD and setpgrp() Message-ID: <341@n8emr.UUCP> Date: Fri, 20-Nov-87 09:54:46 EST Article-I.D.: n8emr.341 Posted: Fri Nov 20 09:54:46 1987 Date-Received: Sun, 22-Nov-87 04:25:35 EST Reply-To: lwv@n8emr.UUCP (Larry W. Virden) Distribution: world Organization: N8EMR's Ham BBS (HBBS), Columbus,Ohio Lines: 20 Keywords: setpgrp system calls stdin Summary: searching for a good description of BSD setpgrp() I am in search of an explanation of setpgrp that covers several of the bases. For instance, it appears that open file descriptors or pointers are clobbered when a setpgrp() is executed. For instance, saying: setpgrp(0, getpid()); fgets(buff, stdin); in a program causes the fgets to fail; some systems you get an EIO errno value and others the program just hangs! Are there other undocumented problems with using it that we should be aware of? Where does one find the unwritten lore of using things like this? -- Larry W. Virden 75046,606 (CIS) 674 Falls Place, Reynoldsburg, OH 43068 (614) 864-8817 cbosgd!n8emr!lwv HAM/SWL BBS (HBBS) 614-457-4227.. 300/1200 bps We haven't inherited the world from our parents, but borrowed it from our children.