Right now if the xine is started with the
--stdctl option, it will SIGSEGV on exit,
and also the stdctl itself doesn't work
out right. This is because the return value
of the select() syscall is not checked,
which is a bug.
The attached patch fixes the problem.