FreeCalypso > hg > themwi-system-sw
comparison mncc/mtsock.c @ 28:660126bd5f59
themwi-mncc: fix one bug, add debug syslog output
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 28 Jun 2022 21:47:04 -0800 |
parents | fd43f179ff1d |
children | db7ed6a55ba4 |
comparison
equal
deleted
inserted
replaced
27:c6572f4c31d2 | 28:660126bd5f59 |
---|---|
66 if (!conn) { | 66 if (!conn) { |
67 syslog(LOG_CRIT, "malloc for mtcall socket conn: %m"); | 67 syslog(LOG_CRIT, "malloc for mtcall socket conn: %m"); |
68 close(fd); | 68 close(fd); |
69 return; | 69 return; |
70 } | 70 } |
71 syslog(LOG_INFO, "new MT call socket connection"); | |
71 bzero(conn, sizeof(struct socket_conn)); | 72 bzero(conn, sizeof(struct socket_conn)); |
72 conn->fd = fd; | 73 conn->fd = fd; |
73 conn->next = mtcall_socket_head; | 74 conn->next = mtcall_socket_head; |
74 mtcall_socket_head = conn; | 75 mtcall_socket_head = conn; |
75 update_max_fd(fd); | 76 update_max_fd(fd); |