Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!hao!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: DATAGRAM sockets in the UNIX DOMAIN. Message-ID: <8572@mimsy.UUCP> Date: Mon, 14-Sep-87 18:12:29 EDT Article-I.D.: mimsy.8572 Posted: Mon Sep 14 18:12:29 1987 Date-Received: Wed, 16-Sep-87 00:41:29 EDT References: <577@acer.stl.stc.co.uk> <1041@ius1.cs.cmu.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 13 In article <1041@ius1.cs.cmu.edu> edw@ius1.cs.cmu.edu (Eddie Wyatt) writes: >>ioctl(fd,SIOCSPGRP,(char*)&pid) /* set process group pid for signal */ > ^^^^ > int pgrp = -getpid(); > (void) ioctl(port,SIOCSPGRP, (char *) &pgrp); Careful; the semantics were reversed in the change from 4.2BSD to 4.3BSD. (I had nothing to do with this!) See your socket(2) and fcntl(2) manuals for details. I think -getpid() => pgrp on 4.3BSD, and -getpid() => pid on 4.2BSD. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris