🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.unix
Article #783

how to set process group on socket

#783
From: Steve Emmerson
Date: Tue, 12 Mar 1991 00:19
19 lines
1129 bytes
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
Technical Details
Message-ID: <125384@uunet.UU.NET>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!uwm.edu!cs.utexas.edu!uunet!uunet.UU.NET!sef

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!uwm.edu!cs.utexas.edu!uunet!uunet.UU.NET!sef
From: steve@unidata.ucar.edu (Steve Emmerson)
Newsgroups: comp.std.unix
Subject: how to set process group on socket
Message-ID: <125384@uunet.UU.NET>
Date: 12 Mar 91 00:19:27 GMT
Sender: usenet@uunet.UU.NET
Organization: University Corporation for Atmospheric Research (UCAR)
Lines: 19
Approved: sef@uunet.uu.net (Moderator, Sean Eric Fagan - comp.std.unix)
Nntp-Posting-Host: uunet.uu.net
X-Submissions: std-unix@uunet.uu.net
Originator: sef@uunet.UU.NET