if(FD_ISSET(autosample_fd, &tmpfds)) {
return_value = nonblock_readline(&autosample_buffer, autosample_fd, &cmd_q, client_lst, opt);
if(return_value == 2) {
- log_printf(WARNING, "autosample process has crashed, removing pipe to it");
+ log_printf(WARNING, "autosample not running, removing pipe to it");
FD_CLR(autosample_fd, &readfds);
return_value = 0;
continue;
}
int autosample_fd = -1;
-// if(opt.led_filename_) {
+ if(key_value_storage_length(&opt.autosampledevs_) > 0) {
log_printf(NOTICE, "starting autosample process");
autosample_fd = start_autosample_process(&opt);
if(autosample_fd == -1) {
log_close();
exit(1);
}
-// }
+ }
int cmd_listen_fd = init_command_socket(opt.command_sock_);
if(cmd_listen_fd < 0) {