comparison src/protocols/gg/lib/libgadu.c @ 13913:4661eefa0840

[gaim-migrate @ 16413] As discussed on gaim-devel, use _exit() rather than exit() when exiting the dns resolver forked process. This matches the call used in gaim's own proxy.c and prevents a (fairly ridiculous) crash in the atexit() handler installed by Apple's Address Book framework on OS X. committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Mon, 03 Jul 2006 18:28:13 +0000
parents 9cbc5967fbfd
children
comparison
equal deleted inserted replaced
13912:3d1cee0d360d 13913:4661eefa0840
1 /* $Id: libgadu.c 14520 2005-11-25 00:32:45Z rlaager $ */ 1 /* $Id: libgadu.c 16413 2006-07-03 18:28:13Z evands $ */
2 2
3 /* 3 /*
4 * (C) Copyright 2001-2003 Wojtek Kaniewski <wojtekka@irc.pl> 4 * (C) Copyright 2001-2003 Wojtek Kaniewski <wojtekka@irc.pl>
5 * Robert J. Wo¼ny <speedy@ziew.org> 5 * Robert J. Wo¼ny <speedy@ziew.org>
6 * Arkadiusz Mi¶kiewicz <arekm@pld-linux.org> 6 * Arkadiusz Mi¶kiewicz <arekm@pld-linux.org>
79 #ifndef lint 79 #ifndef lint
80 static char rcsid[] 80 static char rcsid[]
81 #ifdef __GNUC__ 81 #ifdef __GNUC__
82 __attribute__ ((unused)) 82 __attribute__ ((unused))
83 #endif 83 #endif
84 = "$Id: libgadu.c 14520 2005-11-25 00:32:45Z rlaager $"; 84 = "$Id: libgadu.c 16413 2006-07-03 18:28:13Z evands $";
85 #endif 85 #endif
86 86
87 #ifdef _WIN32 87 #ifdef _WIN32
88 /** 88 /**
89 * Deal with the fact that you can't select() on a win32 file fd. 89 * Deal with the fact that you can't select() on a win32 file fd.
355 } 355 }
356 } 356 }
357 357
358 write(pipes[1], &a, sizeof(a)); 358 write(pipes[1], &a, sizeof(a));
359 359
360 exit(0); 360 _exit(0);
361 } 361 }
362 362
363 close(pipes[1]); 363 close(pipes[1]);
364 364
365 *fd = pipes[0]; 365 *fd = pipes[0];