From e96a54f4508cbef657c19d23b9920ee8edea1104 Mon Sep 17 00:00:00 2001 From: pooka Date: Thu, 27 Jan 2011 18:05:16 +0000 Subject: [PATCH] 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 ;) --- lib/librumphijack/hijack.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/librumphijack/hijack.c b/lib/librumphijack/hijack.c index b65cca04f238..1806b6184273 100644 --- a/lib/librumphijack/hijack.c +++ b/lib/librumphijack/hijack.c @@ -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 -__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 bool hostlocalsockets = true; static void __attribute__((constructor)) rcinit(void) { - int (*rumpcinit)(void); void **rumpcdlsym; void *hand; unsigned i, j; @@ -195,8 +194,6 @@ rcinit(void) 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 @@ rcinit(void) 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 */