freebsd-ports/databases/memcached/files/patch-thread.c
Marcus Alves Grando 4b61ee2844 - Fix thread support [1]
- Fix repcached on amd64 updating to repcached 2.2 [2]
- Bump PORTREVISION

PR:		129631 [1], 129767 [2]
Submitted by:	Artemiev Igor <ai___kliksys.ru> [1],
		Maxim Dounin <mdounin___mdounin.ru> [2]
2009-01-27 10:23:43 +00:00

10 lines
343 B
C

--- thread.c.orig 2009-01-27 00:34:19.000000000 -0200
+++ thread.c 2009-01-27 00:34:04.000000000 -0200
@@ -644,6 +644,7 @@
perror("Can't allocate thread descriptors");
exit(1);
}
+ memset(threads, 0, sizeof(LIBEVENT_THREAD) * nthreads);
threads[0].base = main_base;
threads[0].thread_id = pthread_self();