diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-10 00:32:28 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-10 00:32:28 +0800 |
commit | 33fa3493e5bc3dd14817bb34f5c9a3bbba4bc734 (patch) | |
tree | fc85fc999f239c827e89848ee7678e113051e5a1 /daemon/logind | |
parent | 15698c0601393d7a0a1c0a0b26d42b3cb60ddf80 (diff) | |
download | pttbbs-33fa3493e5bc3dd14817bb34f5c9a3bbba4bc734.tar pttbbs-33fa3493e5bc3dd14817bb34f5c9a3bbba4bc734.tar.gz pttbbs-33fa3493e5bc3dd14817bb34f5c9a3bbba4bc734.tar.bz2 pttbbs-33fa3493e5bc3dd14817bb34f5c9a3bbba4bc734.tar.lz pttbbs-33fa3493e5bc3dd14817bb34f5c9a3bbba4bc734.tar.xz pttbbs-33fa3493e5bc3dd14817bb34f5c9a3bbba4bc734.tar.zst pttbbs-33fa3493e5bc3dd14817bb34f5c9a3bbba4bc734.zip |
* sendmsg() with ancillary on Linux seems like requiring unix domain socket original path, even if the socket was already opened.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4531 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon/logind')
-rw-r--r-- | daemon/logind/loginc.c | 2 | ||||
-rw-r--r-- | daemon/logind/logind.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/daemon/logind/loginc.c b/daemon/logind/loginc.c index 21a4d434..ab60838e 100644 --- a/daemon/logind/loginc.c +++ b/daemon/logind/loginc.c @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) const char *encoding = ""; login_data dat = {0}; - if ((xfd = recv_remote_fd(fd)) < 0) + if ((xfd = recv_remote_fd(fd, argv[1])) < 0) { fprintf(stderr, "recv_remote_fd error. abort.\r\n"); break; diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c index bc513c27..934e8046 100644 --- a/daemon/logind/logind.c +++ b/daemon/logind/logind.c @@ -1025,6 +1025,7 @@ bind_port(int port) snprintf(buf, sizeof(buf), "*:%d", port); + fprintf(stderr,"binding to port: %d...", port); if ( (sfd = tobindex(buf, SOCKET_QLEN, _set_bind_opt, 1)) < 0 ) { fprintf(stderr, "cannot bind to port: %d. abort.\r\n", port); @@ -1035,7 +1036,7 @@ bind_port(int port) event_set(pev_listen, sfd, EV_READ | EV_PERSIST, listen_cb, pev_listen); event_add(pev_listen, NULL); - fprintf(stderr,"bound to port: %d\r\n", port); + fprintf(stderr,"ok. \r\n"); return 0; } |