*BSD News Article 10886


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA862 ; Mon, 08 Feb 93 16:00:52 EST
Xref: sserve comp.unix.bsd:10939 comp.unix.ultrix:16347
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!uknet!rsre!signal.dra.hmg.gb!signal.dra.hmg.gb!usenet
From: heading@ccint1.rsre.mod.uk (Anthony J.R. Heading)
Newsgroups: comp.unix.bsd,comp.unix.ultrix
Subject: setsid() error in BSD telnetd
Keywords: telnetd
Message-ID: <1kup8kINNk42@signal.dra.hmg.gb>
Date: 5 Feb 93 22:21:08 GMT
Organization: Defence Research Agency
Lines: 16
NNTP-Posting-Host: amigos.dra.hmg.gb

I'm puzzled. I've just installed the BSD telnetd on Ultrix,
and when I connect to it, I get an [EPERM] - Not owner
error returned from setsid(). This function is supposed
to make the process into a new session, and according
to the man pages, fails if either:
 a) the process is already a process group leader; or
 b) the PID matches the PGID of another process.

But surely neither of these can happen? I don't think
inetd forces its children into new process groups. Which
makes (a) unlikely. And (b) is ludicrous. Why would
another process claim that something spawned by inetd
was its process group leader?

Any ideas?
Anthony