[Mono-dev] UnixStream Patch

R. Tyler Ballance tyler at bleepconsulting.com
Fri Dec 22 10:03:51 EST 2006

On Dec 22, 2006, at 8:13 AM, Jonathan Pryor wrote:

> On Fri, 2006-12-22 at 03:42 -0600, R. Tyler Ballance wrote:
>> I know I've talked about the desire for this simple addition to the
>> UnixStream class with Alp before, but I have found a need for it
>> elsewhere.
> Could you tell us what the need is?  I can't think of any scenarios in
> which it would be necessary...

When using a class such as UnixFileInfo that can create/open and  
return a UnixStream there's absolutely no way to wrest "control" over  
"who" owns the handle because the object's already instantiated.

In a set of scenarios when dealing with installed libraries (Mac OS  
X) some of them have a compounded close function, that  finishes  
compression, for example, and then proceeds to close() the file  
descriptor. My current workaround for this is to use a shim between  
the installed libraries, and my Mono code to accomplish the same task  
that could be accomplished if I could  set 'ownsHandle' after object  


R. Tyler Ballance: Custom Mac and Linux Development at bleep. consulting
contact: tyler at bleepconsulting.com | jabber: tyler at jabber.geekisp.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061222/bf78d6d7/attachment.html 

More information about the Mono-devel-list mailing list