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
_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: [email protected]

Reply via email to