Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumphijack Set server reconnection timeout to infinit...
details: https://anonhg.NetBSD.org/src/rev/7a4d1ae3157c
branches: trunk
changeset: 761443:7a4d1ae3157c
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jan 27 18:05:16 2011 +0000
description:
Set server reconnection timeout to infinite. There probably need
to be some toggle eventually, but for now I'm optimizing the default
for my firefox use ;)
diffstat:
lib/librumphijack/hijack.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (46 lines):
diff -r 7756dfa001a6 -r 7a4d1ae3157c lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c Thu Jan 27 18:04:05 2011 +0000
+++ b/lib/librumphijack/hijack.c Thu Jan 27 18:05:16 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.21 2011/01/26 18:48:32 christos Exp $ */
+/* $NetBSD: hijack.c,v 1.22 2011/01/27 18:05:16 pooka Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.21 2011/01/26 18:48:32 christos Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.22 2011/01/27 18:05:16 pooka Exp $");
#define __ssp_weak_name(fun) _hijack_ ## fun
@@ -187,7 +187,6 @@
static void __attribute__((constructor))
rcinit(void)
{
- int (*rumpcinit)(void);
void **rumpcdlsym;
void *hand;
unsigned i, j;
@@ -195,8 +194,6 @@
hand = dlopen("librumpclient.so", RTLD_LAZY|RTLD_GLOBAL);
if (!hand)
err(1, "cannot open librumpclient.so");
- rumpcinit = dlsym(hand, "rumpclient_init");
- _DIAGASSERT(rumpcinit);
rumpcdlsym = dlsym(hand, "rumpclient_dlsym");
*rumpcdlsym = hijackdlsym;
@@ -229,8 +226,9 @@
syscnames[j].scm_rumpname);
}
- if (rumpcinit() == -1)
+ if (rumpclient_init() == -1)
err(1, "rumpclient init");
+ rumpclient_setconnretry(RUMPCLIENT_RETRYCONN_INFTIME);
}
/* XXX: need runtime selection. low for now due to FD_SETSIZE */
Home |
Main Index |
Thread Index |
Old Index