OSProcess: making sure that a child process always dies

David T. Lewis lewis at mail.msen.com
Tue Mar 20 23:24:00 UTC 2007


On Tue, Mar 20, 2007 at 04:12:35PM -0700, Joshua Gargus wrote:
> Hi David,
> 
> In order to compile the plugin on OS X (using Ian's 3.9-8 from  
> squeakvm.org) I had to hack UnixOSProcessPlugin.c so that  
> primitiveSetPGrp() calls 'setpgrp(0,0)' instead of 'setpgrp()'.
> 
> It appears that OS X and Linux treat these differently.  Under Linux,  
> setpgrp() calls setpgid(0,0) , whereas under OS X, setpgrp is  
> identical to setpgid (the sources for these assertions are,  
> respectively, http://linux.about.com/library/cmd/blcmdl2_setpgrp.htm  
> and 'man setpgrp' on OSX).  It appears that having primitiveSetPGrp()  
> call setpgid(0,0) would be the most compatible approach.

Josh,

Great, thanks a lot for letting me know about this. I'll make the
change as you suggest and update it on SqueakSource.

Much appreciated!

Dave




More information about the Squeak-dev mailing list