Return to daemon.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / mqtt / src |
version 1.1.2.2, 2011/11/30 01:06:30 | version 1.1.2.3, 2011/12/01 00:10:18 |
---|---|
Line 2 | Line 2 |
int | int |
Run(void) | Run(int sock) |
{ | { |
FTRACE(1); | FTRACE(1); |
if (listen(sock, SOMAXCONN) == -1) { | |
syslog(LOG_ERR, "Error:: listen() #%d - %s\n", errno, strerror(errno)); | |
return -1; | |
} | |
return 0; | return 0; |
} | } |