diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-12 17:01:52 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-12 17:01:52 +0800 |
commit | c01f3b534c30f5d1c0301624c2384bff7751d87f (patch) | |
tree | 302ebe77c600ec20102256c4ab2642cb01000423 /daemon/logind | |
parent | ff9917405ba44a07abc4622201bbfa78c8b82137 (diff) | |
download | pttbbs-c01f3b534c30f5d1c0301624c2384bff7751d87f.tar pttbbs-c01f3b534c30f5d1c0301624c2384bff7751d87f.tar.gz pttbbs-c01f3b534c30f5d1c0301624c2384bff7751d87f.tar.bz2 pttbbs-c01f3b534c30f5d1c0301624c2384bff7751d87f.tar.lz pttbbs-c01f3b534c30f5d1c0301624c2384bff7751d87f.tar.xz pttbbs-c01f3b534c30f5d1c0301624c2384bff7751d87f.tar.zst pttbbs-c01f3b534c30f5d1c0301624c2384bff7751d87f.zip |
* logind: add resolve_garbage() and refine messages
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4572 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon/logind')
-rw-r--r-- | daemon/logind/logind.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c index 69863d6c..8d7a9e16 100644 --- a/daemon/logind/logind.c +++ b/daemon/logind/logind.c @@ -881,6 +881,9 @@ start_service(int fd, login_ctx *ctx) if (g_verbose) fprintf(stderr, LOG_PREFIX "start new service: %s@%s:%s #%d\r\n", ld.userid, ld.hostip, ld.port, fd); + // XXX simulate the cache re-construction in mbbsd/login_query. + resolve_garbage(); + // deliver the fd to hosting service if (send_remote_fd(g_tunnel, fd) < 0) return ack; @@ -1384,11 +1387,13 @@ main(int argc, char *argv[]) setuid(BBSUID); // create tunnel + fprintf(stderr, LOG_PREFIX "creating tunnel: %s...", tunnel_path); if ( (tfd = tobindex(tunnel_path, 1, _set_bind_opt, 1)) < 0) { - fprintf(stderr, LOG_PREFIX "cannot create tunnel: %s. abort.\r\n", tunnel_path); + fprintf(stderr, LOG_PREFIX "cannot create tunnel. abort.\r\n"); return 2; } + fprintf(stderr, "ok.\r\n"); event_set(&ev_tunnel, tfd, EV_READ | EV_PERSIST, tunnel_cb, &ev_tunnel); event_add(&ev_tunnel, NULL); |