From: sgunderson@bigfoot.com <> Date: Wed, 31 Jan 2007 16:08:25 +0000 (+0100) Subject: listen() on the socket. X-Git-Url: https://git.sesse.net/?p=jam;a=commitdiff_plain;h=162375614b7b05c9ac171452d3d9f82a048514e4 listen() on the socket. --- diff --git a/jam.c b/jam.c index 68ed261..9b7b8fd 100644 --- a/jam.c +++ b/jam.c @@ -24,6 +24,11 @@ int get_server_socket(unsigned short port) exit(1); } + if (listen(server_sock, 255) == -1) { + perror("listen()"); + exit(1); + } + return server_sock; }