diff options
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; } |