why does NSTask setpgrp on sub processes?

2010-01-19 Thread Derek Zhou
hi all, it seems NSTask setpgrp after the fork: ... /* * Make sure task is run in it's own process group. */ #ifdef HAVE_SETPGRP #ifdef SETPGRP_VOID setpgrp(); #else

PATCH: optional use gnutls instead of openssl

2007-06-14 Thread Derek Zhou
Use --enable-gnutls to use gnutls instead of openssl. The default is still openssl. Caveats: * Server side is not tested, lack a good tstcase. Client side should be fine. * handshake may block. Again I don't have a good test case so I would rather not write code that may not work. Derek

Re: NSStream update

2006-02-21 Thread Derek Zhou
Andrew Ruder [EMAIL PROTECTED] writes: 2. make the ivar/setter generic somehow ... eg by using a void* rather than an int. Actually a windows handle is an unsigned long thought I'm not sure it's guaranteed to stay that way ... using void* in the generic part should be safe though. The

NSStream update

2006-02-15 Thread Derek Zhou
I just merged my NSStream work with the svn head. A (big) patch is attached. Changes include: - some bug fixs - some refactoring - server side stream. This is not defined by apple, however this look like the resonable things to do. Also some tests are attached too. I also have some mingw32

Re: NSStream and friends + NSPredicate, NSExpression and others

2006-02-13 Thread Derek Zhou
Richard Frith-Macdonald [EMAIL PROTECTED] writes: I'm very interested in that, as I've been wanting to restructure to get all the I/O code using a single underlying API for a few years now, but never had the time to do it. Of course, it *must* work on mingw32 (ie native windows API) and be

NSStream and friends

2006-01-28 Thread Derek Zhou
Hi all, Right now gnustep is missing the NS*Stream classes. Has anyone been thinking about implementing them? They look useful; provide nicer and saner interface to sockets than NSFileHandle. If they are not taken, I will try to write them and post here within a week or so. It doesn't look like

Re: NSCharacterSet bloat?

2006-01-24 Thread Derek Zhou
Richard Frith-Macdonald [EMAIL PROTECTED] writes: On 23 Jan 2006, at 22:40, Derek Zhou wrote: If that is not too big, can we merge them into base or make? Of course we could ... but I can see no reason to do so, any more than we should merge gcc into the base or make package.(less

Re: NSCharacterSet bloat?

2006-01-23 Thread Derek Zhou
Richard Frith-Macdonald [EMAIL PROTECTED] writes: On 23 Jan 2006, at 20:20, Derek Zhou wrote: Hi all, It looks like now NSCharacterSet in base (1.11.2) contains more than 600k of const static data (all the NSCharacterSet bitmaps). To put thing in persective, it is more than 25