diff options
author | Max Kellermann <max@duempel.org> | 2009-01-03 13:44:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-03 13:44:19 +0100 |
commit | 2bc01440231242c8c7c0c265b575e58d35d354c5 (patch) | |
tree | a66f021595a693d5b5a73298ec66b1f07e056cbe /src/listen.c | |
parent | 0eb1166beb05f1880a3b9af8cb79bf5b242d50e9 (diff) | |
download | mpd-2bc01440231242c8c7c0c265b575e58d35d354c5.tar.gz mpd-2bc01440231242c8c7c0c265b575e58d35d354c5.tar.xz mpd-2bc01440231242c8c7c0c265b575e58d35d354c5.zip |
client: use GLib instead of utils.h
Diffstat (limited to 'src/listen.c')
-rw-r--r-- | src/listen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/listen.c b/src/listen.c index a59a6aa02..a45cb6d49 100644 --- a/src/listen.c +++ b/src/listen.c @@ -293,6 +293,8 @@ listen_in_event(G_GNUC_UNUSED GIOChannel *source, fd = accept(listen_fd, &sockAddr, &socklen); if (fd >= 0) { + set_nonblocking(fd); + client_new(fd, &sockAddr, get_remote_uid(fd)); } else if (fd < 0 && errno != EINTR) { g_warning("Problems accept()'ing"); |