[comp.std.unix] how to set process group on socket

steve@unidata.ucar.edu (Steve Emmerson) (03/12/91)

Submitted-by: steve@unidata.ucar.edu (Steve Emmerson)

Greetings,

How would one do the equivalent of the following, BSD-ism:

	ioctl(fd, SIOCSPGRP, &pid);

That is, in a POSIX environment, how does one set the process-group ID
of processes that will receive SIGIO and SIGURG signals associated with
a particular file-descriptor (which, incidentally, is a socket) to the PID
of the current process.

Can one use the tc*() function?

Steve Emmerson        steve@unidata.ucar.edu        ...!ncar!unidata!steve


Volume-Number: Volume 23, Number 7

decot@hpisod2.cup.hp.com (Dave Decot) (03/16/91)

Submitted-by: decot@hpisod2.cup.hp.com (Dave Decot)

> 	ioctl(fd, SIOCSPGRP, &pid);
> 
> That is, in a POSIX environment, how does one set the process-group ID
> of processes that will receive SIGIO and SIGURG signals associated with
> a particular file-descriptor (which, incidentally, is a socket) to the PID
> of the current process.

POSIX.1 has no such signals SIGIO or SIGURG, nor any sockets, nor do
any of the current drafts of other POSIX standards.

The current POSIX.4 draft describes ways to signal asynchronous I/O
completion, but the signals currently go only to the process that
started the I/O.

Dave Decot


Volume-Number: Volume 23, Number 15