> Examine the value returned by read() instead of doing either. The "read()" is down in libc.so which is done by "getc()". So there may be a bug in libc, but I don't have time right now to look at it.
I submitted a new version of the patch to xorg-devel: http://lists.x.org/archives/xorg-devel/2010-December/016861.html please take a look and give it a "Reviewed-by" and or "Tested-by" line if you can . Pat --- 2010/12/6 Krzysztof Żelechowski <giecr...@stegny.2a.pl>: > Dnia poniedziałek, 6 grudnia 2010 o 21:30:23 Philipp Hagemeister napisał(a): >> Sorry for the mixup, corrected: >> You've just introduced a race condition: What if I delete the file just >> after you called *stat* and create a *directory* in its place? Use fstat >> instead of stat. > > Examine the value returned by read() instead of doing either. > > Chris > _______________________________________________ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com