Tomek pisze: > Mam problem z resolverem pod Mac OS X. W przypadku biblioteki > skompilowanej z obsluga pthreads nastepuje zawias w funkcji gg_watch_fd > na wykonaniu close(sess->fd); (events.c:1084). > Natomiast w przypadku kompilacji bez pthreads zawias nie nastepuje, > natomiast konsola jest zasypywana komunikatami: > "The process has forked and you cannot use this CoreFoundation > functionality safely. You MUST exec().":
Mógłbyś sprawdzić czy załączona łatka pomaga? Pozdrawiam, Wojtek
diff -uNr libgadu-1.8.2.orig/src/libgadu.c libgadu-1.8.2/src/libgadu.c --- libgadu-1.8.2.orig/src/libgadu.c 2008-06-02 23:15:45.000000000 +0200 +++ libgadu-1.8.2/src/libgadu.c 2008-12-14 19:10:31.000000000 +0100 @@ -299,6 +299,9 @@ if (pipe(pipes) == -1) return -1; + fcntl(pipes[0], F_SETFL, O_NONBLOCK); + fcntl(pipes[1], F_SETFL, O_NONBLOCK); + if ((res = fork()) == -1) { errno2 = errno; close(pipes[0]); @@ -444,6 +447,9 @@ return -1; } + fcntl(pipes[0], F_SETFL, O_NONBLOCK); + fcntl(pipes[1], F_SETFL, O_NONBLOCK); + if (!(data->hostname = strdup(hostname))) { gg_debug(GG_DEBUG_MISC, "// gg_resolve_pthread() out of memory\n"); new_errno = errno;
_______________________________________________ libgadu-devel mailing list libgadu-devel@lists.ziew.org http://lists.ziew.org/mailman/listinfo/libgadu-devel