Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 1999 15:58:31 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        brian@Awfulhak.org, peter@netplex.com.au
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/cron/cron popen.c
Message-ID:  <199904070558.PAA18555@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>What I'd like to know though, is why a fd to /dev/console gets revoked
>when something does a revoke("/dev/ttyv0") - they have different minor/major
>numbers and you can see the difference between the two via ps.  I'd have
>thought that fd's to /dev/console should never be revoked...

/dev/console doesn't get revoked here.  My test:

	# cat >/dev/console
	1
	2
	3
	4
	[above shows up correctly on /dev/ttyv0]
	^Z
	# revoke /dev/console       # use my handy revoke utility
	[login on /dev/ttyv0 gets killed correctly]
	%
	1
	2
	3
	4
	[above still shows up on /dev/ttyv0]

A getty directly on /dev/console may cause more mysterious behaviour.
This is simpler for syscons vtys than for serial consoles.  The syscons
/dev/console has an extra layer of aliasing (which was once necessary
to avoid problems with revoked consoles but shouldn't be necessary now).

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904070558.PAA18555>