Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
No prob;). But that would have been a serious kernel problem, because if you have races with this scheme :
remove_watch
write_whatever_you_want
close_file
add_new_watch
then it means that you're not doing the right thing in the kernel. After the remove_watch you should be free to do whatever you want and after the close file you should be free to add any watch you want.
Obviously talking about a single-threaded app.
Last edited by MisterIO; 11-14-2008 at 11:15 AM.