Without this patch, the command
para_filter -f mp3dec < foo.mp3 > /dev/null
would take several minutes because the stdin buffer is usually full and the stdout buffer empty
which causes select() to be called with empty fd sets, resulting in a one second timeout.
sot->input_error = &fc->task.error;
register_task(&sit->task);
- register_task(&fc->task);
register_task(&sot->task);
+ register_task(&fc->task);
s.default_timeout.tv_sec = 1;
s.default_timeout.tv_usec = 0;
ret = schedule(&s);