thermferm/thermferm.c

changeset 561
fcfc3dbe85fa
parent 557
ae17042a6d39
child 569
9c69d43bfb06
equal deleted inserted replaced
560:88c398efc728 561:fcfc3dbe85fa
966 syslog(LOG_NOTICE, "Starting daemon with pid %d", frk); 966 syslog(LOG_NOTICE, "Starting daemon with pid %d", frk);
967 exit(0); 967 exit(0);
968 } 968 }
969 } 969 }
970 970
971 killconfig();
971 syslog(LOG_NOTICE, "Finished, rc=%d", rc); 972 syslog(LOG_NOTICE, "Finished, rc=%d", rc);
972 return rc; 973 return rc;
973 } 974 }
974 975
975 976
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;

mercurial