diff options
author | Simo Sorce <simo@redhat.com> | 2012-01-19 15:15:57 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-01-19 15:18:39 -0500 |
commit | cb1ab5633b112e083fa252712f8fc667373a93af (patch) | |
tree | 8ae368bfc8004b00605dd36d21824457aa7c04c0 /proxy/src/gssproxy.c | |
parent | 6ca28bbf8523713e34ed2a7378e21f23cf64e298 (diff) | |
download | gss-proxy-cb1ab5633b112e083fa252712f8fc667373a93af.tar.gz gss-proxy-cb1ab5633b112e083fa252712f8fc667373a93af.tar.xz gss-proxy-cb1ab5633b112e083fa252712f8fc667373a93af.zip |
Refactor workers init so we can pass down gpctx
Diffstat (limited to 'proxy/src/gssproxy.c')
-rw-r--r-- | proxy/src/gssproxy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/proxy/src/gssproxy.c b/proxy/src/gssproxy.c index 9bfad08..2f25899 100644 --- a/proxy/src/gssproxy.c +++ b/proxy/src/gssproxy.c @@ -41,6 +41,7 @@ int main(int argc, const char *argv[]) int vflags; int fd; struct gssproxy_ctx *gpctx; + int ret; struct poptOption long_options[] = { POPT_AUTOHELP @@ -99,6 +100,7 @@ int main(int argc, const char *argv[]) if (!vctx) { return 1; } + gpctx->vctx = vctx; vflags = VERTO_EV_FLAG_PERSIST | VERTO_EV_FLAG_IO_READ; ev = verto_add_io(vctx, vflags, accept_sock_conn, fd); @@ -107,8 +109,8 @@ int main(int argc, const char *argv[]) } verto_set_private(ev, gpctx, NULL); - gpctx->workers = gp_workers_init(vctx, gpctx->config); - if (!gpctx->workers) { + ret = gp_workers_init(gpctx); + if (ret) { exit(EXIT_FAILURE); } |