On 20.03.2006, at 00:29, Andreas Kohn wrote:
[*] The man page of kill doesn't mention "0" as a way to check if a process is jailed, and neither jail(2) nor jail(8) talk about it. And Idon't think a user new to jails imagines that trying and failing to senda non-existing (cf. sys/signal.h, signal(3)) to init will tell himwhether he is jailed or not. But I may be overlooking something obvious,of course :)
you'll get a ESRCH if you're in a jail, i guess. or a EPERM? whatever, the sysctl is the way to go, IMO.
cheers simon -- Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
PGP.sig
Description: This is a digitally signed message part
