2082 if (shutdown(sock, SHUT_RDWR)) { |
2083 if (shutdown(sock, SHUT_RDWR)) { |
2083 syslog(LOG_NOTICE, "Can't shutdown socket: %s", strerror(errno)); |
2084 syslog(LOG_NOTICE, "Can't shutdown socket: %s", strerror(errno)); |
2084 } |
2085 } |
2085 sock = -1; |
2086 sock = -1; |
2086 } |
2087 } |
|
2088 lcd_buf_reset(); |
2087 wrconfig(); |
2089 wrconfig(); |
2088 ulockprog((char *)"thermferm"); |
2090 ulockprog((char *)"thermferm"); |
2089 |
2091 |
2090 syslog(LOG_NOTICE, "Server process ended"); |
2092 syslog(LOG_NOTICE, "Server process ended"); |
2091 return 0; |
2093 return 0; |