Merge lp:~trond-norbye/gearmand/solaris-fixes into lp:gearmand/1.0

Proposed by Trond Norbye
Status: Merged
Merged at revision: not available
Proposed branch: lp:~trond-norbye/gearmand/solaris-fixes
Merge into: lp:gearmand/1.0
Diff against target: None lines
To merge this branch: bzr merge lp:~trond-norbye/gearmand/solaris-fixes
Reviewer Review Type Date Requested Status
Gearman-developers Pending
Review via email: mp+6567@code.launchpad.net
To post a comment you must log in.
66. By Trond Norbye <tn202803@khepri38>

Add configuration files to (install) and run Gearman as a Solaris SMF service

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libgearman/gearmand.c'
2--- libgearman/gearmand.c 2009-05-08 22:23:22 +0000
3+++ libgearman/gearmand.c 2009-05-14 06:23:57 +0000
4@@ -150,13 +150,14 @@
5 fprintf(stderr, "Multi-threaded gearmand requires libevent 1.4 or "
6 "later, libevent 1.3 does not provided a thread-safe interface.");
7 return GEARMAN_EVENT;
8-#endif
9+#else
10
11 /* Set the number of free connection structures each thread should keep
12 around before the main thread is forced to take them. We compute this
13 here so we don't need to on every new connection. */
14 gearmand->max_thread_free_dcon_count= ((GEARMAN_MAX_FREE_SERVER_CON /
15 gearmand->threads) / 2);
16+#endif
17 }
18
19 GEARMAND_LOG(gearmand, 1, "Initializing libevent for main thread")

Subscribers

People subscribed via source and target branches