From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4BFF7DB6.2000504@bouyapop.org> Date: Fri, 28 May 2010 10:24:22 +0200 From: Philippe Anel User-Agent: Thunderbird 2.0.0.24 (X11/20100318) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: <4BFF6566.1070000@bouyapop.org> <4BFF7B3F.3050803@bouyapop.org> In-Reply-To: <4BFF7B3F.3050803@bouyapop.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [9fans] crashing 9vx Topicbox-Message-UUID: 2be7e7ee-ead6-11e9-9d60-3106f5b1d025 Sorry, I was talking about 9vx/main.c:^main of course. But forget it, it still crashes ... it just takes more time before crashing. I suspected the fork in main() because I do not have (for a very very long time) crash with '-F' flag (ie nofork). Phil; Philippe Anel wrote: > I rewrote a simple version with fork(). And got a crash until I move : > > #ifndef __APPLE__ > if(!usetty && !nofork && fork() > 0) > _exit(0); > #endif > > before mach0init(); > > Now it no longer crashes. > > Phil; > >