{
iptv_thread_pool_t *pool = mi->mi_tpool;
+ if (im->mm_iptv_fd > 0 || im->mm_iptv_fd2 > 0)
+ tvhtrace(LS_IPTV, "iptv_input_close_fds %d %d", im->mm_iptv_fd, im->mm_iptv_fd2);
+
/* Close file */
if (im->mm_iptv_fd > 0) {
tvhpoll_rem1(pool->poll, im->mm_iptv_fd);
goto err;
}
+ tvhtrace(LS_IPTV, "iptv pipe: spawned \"%s\" rd %d pid %d", argv[0], rd, pid);
+
spawn_free_args(argv);
spawn_free_args(envp);
im->im_data = NULL;
spawn_kill(pid, tvh_kill_to_sig(im->mm_iptv_kill), im->mm_iptv_kill_timeout);
if (mclk() < im->mm_iptv_respawn_last + sec2mono(2)) {
- tvherror(LS_IPTV, "stdin pipe unexpectedly closed: %s",
- r < 0 ? strerror(errno) : "No data");
+ tvherror(LS_IPTV, "stdin pipe %d unexpectedly closed: %s",
+ rd, r < 0 ? strerror(errno) : "No data");
} else {
/* avoid deadlock here */
pthread_mutex_unlock(&iptv_lock);