[mythtv] [mythtv-commits] Ticket #1381: Slow keyboard response over

mythtv at zacglen.com.au mythtv at zacglen.com.au
Sun Feb 26 02:23:07 UTC 2006


>
>We might be waiting for a while.  There's no such select() (or similar stuf
>f) 
>
>in the code that could be causing that. =)
>

Yes, there is.
Try an strace and find out the *truth*.

Anyone who has done any programming (like myself) will know
that QEventLoop()::exec invokes select().

This is probably a major top-level design error.

Here is a portion of a strace of mythfrontend:

> 20:25:27.420642 write(3, "5\1\4\0\311\0\300\1$\0\0\0\220\2Z\0007\0\4\0\312\0\300 "..., 7532) = 7532
> 20:25:27.421678 write(3, "8\1\4\0\31\0\300\1\0\0\10\0\0\0\0\0008\0\4\0\30\0\300\1"..., 156) = 156
> 20:25:27.421991 ioctl(3, FIONREAD, [0]) = 0
> 20:25:27.422183 ioctl(3, FIONREAD, [0]) = 0
> 20:25:27.422359 gettimeofday({1140773127, 422445}, NULL) = 0
> 20:25:27.422548 select(13, [3 5 12], [], [], {5, 792583}) = 1 (in [3], left {4, 
> 428000})
> 20:25:28.790861 gettimeofday({1140773128, 792579}, NULL) = 0
> 20:25:28.794000 ioctl(3, FIONREAD, [32]) = 0
> 20:25:28.796834 read(3, "\2dc\274H\22m\2$\0\0\0\'\0\300\1\0\0\0\0w\2c\2w\2c\2\0"
> ..., 32) = 32



More information about the mythtv-dev mailing list