From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 27 Jun 2008 17:06:39 +0100 From: "roger peppe" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <20080627152937.4DA6A1E8C2B@holo.morphisms.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <14ec7b180806270816t389b0794i1654ae3b6ed2a46d@mail.gmail.com> <20080627152937.4DA6A1E8C2B@holo.morphisms.net> Subject: Re: [9fans] 9vx - os x fix Topicbox-Message-UUID: c8a94828-ead3-11e9-9d60-3106f5b1d025 i discovered a macos x nasty a while ago that means that if you've forked, then accessing certain library calls (anything Carbon?) draws an error. the stated reason for doing this is that the library doesn't work if the stack has been copied, but it's a bit of a bugger if you're just forking to put yourself in the background. is it possible that you're running up against this? BTW when i try to make vx32 (under macos 10.5.3) i get the following: % make make: vx32-gcc: Command not found make: vx32-gcc: Command not found gcc -m32 -c -nostdinc -Ilibvxc/include -g -O3 -MD -std=gnu99 -I. -m80387 -mfp-ret-in-387 -o libvxc/_exit.o libvxc/_exit.c libvxc/_exit.c: In function '_exit': libvxc/syscall.h:8: error: can't find a register in class 'BREG' while reloading 'asm' make: *** [libvxc/_exit.o] Error 1 admittedly i've only had the briefest peruse through the documentation, so i'm probably doing something wrong. cheers, rog. On Fri, Jun 27, 2008 at 4:31 PM, Russ Cox wrote: > It looks like calling fork() in OS X 10.5 doesn't > copy the alternate signal stack information into > the child. If you add the -F flag to keep it from > forking into the background, Andrey says it > works fine. > > I'll tweak the code to work around this later. > For now, just use -F. > > Russ > > >