Author pitrou
Recipients jcea, loewis, movement, pitrou
Date 2011-01-26.12:41:11
SpamBayes Score 6.77195e-07
Marked as misclassified No
Message-id <1296045471.3684.21.camel@localhost.localdomain>
In-reply-to <1296045030.55.0.492262221105.issue11016@psf.upfronthosting.co.za>
Content
> I do know, but when you are working inside a zone, I am not sure you
> can count of that file being always present. Syslog even could be
> disabled or not available inside a zone.

Then you can just skip the test.

> I am thinking about how to manage OS's with no support for doors.
> Instead of conditionally compile the new STAT,

Lib/stat.py is a pure Python module. There is no compilation to do.
You just have to add the pure Python version of the C macro.
For the record, 0xd000 is (stat.S_IFSOCK + stat.S_IFIFO).

> I would rather have the function always available, but returning FALSE
> when the OS doesn't support doors.

Right.

> But what happen if you mount a Solaris filesystem in a nonsolaris
> machine?. Let say, a Solaris ZFS filesystem with doors, under
> linux/*bsd + ZFS?.

I guess S_ISDOOR would return True.
History
Date User Action Args
2011-01-26 12:41:12pitrousetrecipients: + pitrou, loewis, jcea, movement
2011-01-26 12:41:11pitroulinkissue11016 messages
2011-01-26 12:41:11pitroucreate