Skip to content

Commit 2f60534

Browse files
committed
Clean useless/commented code
1 parent 905c82e commit 2f60534

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

main/cnx.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3737
#include "gridinit-utils.h"
3838
#include "gridinit_internals.h"
3939

40-
static volatile int backlog_unix = 65536;
41-
static volatile int backlog_tcp = 4096;
42-
4340
int
4441
__open_unix_client(const char *path)
4542
{
@@ -56,12 +53,6 @@ __open_unix_client(const char *path)
5653
if (sock < 0)
5754
return -1;
5855

59-
#if 0
60-
/* Got to non-blocking mode */
61-
if (-1 == fcntl(sock, F_SETFL, O_NONBLOCK))
62-
goto label_error;
63-
#endif
64-
6556
/* Bind to file */
6657
local.sun_family = AF_UNIX;
6758
g_strlcpy(local.sun_path, path, sizeof(local.sun_path)-1);
@@ -117,7 +108,7 @@ __open_unix_server(const char *path)
117108
goto label_error;
118109

119110
/* Listen on that socket */
120-
if (-1 == listen(sock, backlog_unix))
111+
if (-1 == listen(sock, 65536))
121112
goto label_error;
122113

123114
errno = 0;

0 commit comments

Comments
 (0)