pidgin: 4dfc05ac: gg: s/exit/_exit/ in the resolver fork()

darkrain42 at pidgin.im darkrain42 at pidgin.im
Mon Jun 14 21:35:32 EDT 2010


-----------------------------------------------------------------
Revision: 4dfc05ac6d6ae070920c029799fb08b7e3b08973
Ancestor: df45ef4a7ecbd22816d968415916540e2629c321
Author: darkrain42 at pidgin.im
Date: 2010-06-15T01:32:14
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4dfc05ac6d6ae070920c029799fb08b7e3b08973

Modified files:
        libpurple/protocols/gg/lib/resolver.c

ChangeLog: 

gg: s/exit/_exit/ in the resolver fork() code

This fixes some crashes in Adium because various OS X libraries
use (P)threads and add atexit() hooks.

-------------- next part --------------
============================================================
--- libpurple/protocols/gg/lib/resolver.c	de27978ed18f6890e64f38b4b3ed09023d7a07d9
+++ libpurple/protocols/gg/lib/resolver.c	88351e4626d264a861591e607719e9396ef9d1f3
@@ -551,9 +551,9 @@ static int gg_resolver_fork_start(int *f
 		}
 
 		if (write(pipes[1], &addr, sizeof(addr)) != sizeof(addr))
-			exit(1);
+			_exit(1);
 
-		exit(0);
+		_exit(0);
 	}
 
 	close(pipes[1]);


More information about the Commits mailing list