Re: why does NSTask setpgrp on sub processes?

2010-01-20 Thread Richard Frith-Macdonald
On 20 Jan 2010, at 07:21, Derek Zhou wrote: > On Tuesday 19 January 2010 10:14:15 pm Derek Zhou wrote: >> On Tuesday 19 January 2010 12:59:28 am Derek Zhou wrote: >>> hi all, >>> it seems NSTask setpgrp after the fork: >>> ... >>> /*

Re: why does NSTask setpgrp on sub processes?

2010-01-20 Thread Derek Zhou
On Wednesday 20 January 2010 12:15:11 am Richard Frith-Macdonald wrote: > > On 20 Jan 2010, at 07:21, Derek Zhou wrote: > > Here is a simple patch. It just don't setpgrp if the process is on a tty. > > Actually, the patch effects the task's process group setting if the *parent* > task is on a t

Re: why does NSTask setpgrp on sub processes?

2010-01-20 Thread Derek Zhou
On Wednesday 20 January 2010 01:25:51 am Derek Zhou wrote: > On Wednesday 20 January 2010 12:15:11 am Richard Frith-Macdonald wrote: > > > > On 20 Jan 2010, at 07:21, Derek Zhou wrote: > > > Here is a simple patch. It just don't setpgrp if the process is on a tty. > > > > Actually, the patch eff

Re: why does NSTask setpgrp on sub processes?

2010-01-20 Thread Richard Frith-Macdonald
On 20 Jan 2010, at 09:25, Derek Zhou wrote: > On Wednesday 20 January 2010 12:15:11 am Richard Frith-Macdonald wrote: >> >> On 20 Jan 2010, at 07:21, Derek Zhou wrote: >>> Here is a simple patch. It just don't setpgrp if the process is on a tty. >> >> Actually, the patch effects the task's pro

Re: why does NSTask setpgrp on sub processes?

2010-01-20 Thread Derek Zhou
On Wednesday 20 January 2010 01:57:10 am Richard Frith-Macdonald wrote: > I think the background process is stopped if it tries to *read*, not if it > tries to write. > I also strongly suspect that this is the behavior expected by most people ... > if background processes were freely able to read

Re: Building tool with corebase

2010-01-20 Thread David Chisnall
On 20 Jan 2010, at 00:34, Stef Bidi wrote: /usr/GNUstep/System/Library/Libraries/libgnustep-base.so: undefined reference to `gnustep_base_user_main' To add to what Richard has said, this is usually caused by GNUstep Make being configured without fake main support and GNUstep Base being co

Re: why does NSTask setpgrp on sub processes?

2010-01-20 Thread David Chisnall
On 20 Jan 2010, at 09:48, Derek Zhou wrote: #import int main(int argc, char** argv) { NSTask* editor = [NSTask new]; [editor setLaunchPath: @"vi"]; [editor launch]; [editor waitUntilExit]; NSLog(@"finished\n"); } I can confirm that, on OS X, once you've fixed it to specify the full p

Re: why does NSTask setpgrp on sub processes?

2010-01-20 Thread Richard Frith-Macdonald
On 20 Jan 2010, at 09:48, Derek Zhou wrote: > Oops, hit send too soon. > > #import > > int main(int argc, char** argv) > { > NSTask* editor = [NSTask new]; > [editor setLaunchPath: @"vi"]; > [editor launch]; > [editor waitUntilExit]; > NSLog(@"finished\n"); > } > > with the setpgrp (curr

Re: why does NSTask setpgrp on sub processes?

2010-01-20 Thread Derek Fawcus
Actually, I believe OSX (10.4.11 anyway) calls setsid() not setpgrp(). However, setsid() also causes a new process group to be created. Using the supplied program, but running /bin/cat and then examining with 'ps ajx' I see: User PID PPID PGIDSESS JOBC STAT TT TIME COMMAND der

[PATCH] Remove objc_mutex usage from gnustep-base

2010-01-20 Thread Niels Grewe
Hello all, attached is a small patch that replaces all objc_mutexes in gnustep-base with pthread_mutexes (save for the runtime mutex, of course). NSLock and friends already use pthreads and I don't think there is anything to be gained by sticking to the old runtime-threading layer in other places

Re: [bug #28590] Cairo backend displays wrong colors on X server with a different endianness

2010-01-20 Thread Derek Fawcus
[from bug-gnustep] On Wed, Jan 20, 2010 at 02:47:38PM +, Fred Kiefer wrote: > > And we only need to change any code in the case where we > don't use shared memory (this is for some reason broken on modern X Servers > and I don't have a clue). Broken how? Note that shared pixmaps are an opti

Re: [PATCH] Remove objc_mutex usage from gnustep-base

2010-01-20 Thread Gregory Casamento
Please fill out the attached form and send it to ass...@gnu.org and fsf-reco...@gnu.org and they will send you a form to fill out for the assignment. Thanks, and welcome to the project! GC On Wed, Jan 20, 2010 at 1:09 PM, Niels Grewe wrote: > Hello all, > > attached is a small patch that replac

Re: hi to all

2010-01-20 Thread Gregory Casamento
Hey, Please find the attached file and send it to both ass...@gnu.org and fsf-reco...@gnu.org and they will send you back an assignment form. You will need to include your postal address so that they can send you back the form through regular mail. Thanks, GC :) On Mon, Jan 11, 2010 at 3:13 AM,

Re: [PATCH] Remove objc_mutex usage from gnustep-base

2010-01-20 Thread Gregory Casamento
You will also need to include your postal mail address so that they can mail you the form. GC On Wed, Jan 20, 2010 at 3:26 PM, Gregory Casamento wrote: > Please fill out the attached form and send it to ass...@gnu.org and > fsf-reco...@gnu.org and they will send you a form to fill out for the >

Re: why does NSTask setpgrp on sub processes?

2010-01-20 Thread Derek Zhou
On Wednesday 20 January 2010 03:36:49 am Richard Frith-Macdonald wrote: > > On 20 Jan 2010, at 09:48, Derek Zhou wrote: > > > Oops, hit send too soon. > > > > #import > > > > int main(int argc, char** argv) > > { > > NSTask* editor = [NSTask new]; > > [editor setLaunchPath: @"vi"]; > > [edi