diff options
author | Saúl Ibarra Corretgé <saghul@gmail.com> | 2016-05-05 17:49:59 +0100 |
---|---|---|
committer | Saúl Ibarra Corretgé <saghul@gmail.com> | 2016-05-05 19:36:44 +0100 |
commit | d43ee0eafa3605d8e4edc1c405a7a08baf00993d (patch) | |
tree | 62c081a34ab764bdb2fa329a85e6c401779d28d0 /docs/src | |
parent | 2753bc1fc88843a7c1cad37e8bf12572ac03c3e8 (diff) | |
download | libuv-d43ee0eafa3605d8e4edc1c405a7a08baf00993d.tar.gz libuv-d43ee0eafa3605d8e4edc1c405a7a08baf00993d.zip |
win: clarify fsevents handling code
The code for handling fs events is quite complex, this commits tries to
make it easier to follow.
First, there are 2 cases in which we use the name of the file straight
from the event (when watching a directory):
- if we cannot create the long path
- if the file got renamed or removed
So separate this logically, even if the code we need is the same.
Second, one way or anothwer we will always have some filename to report,
so remove an unnecessary if.
Third, nullify filenamew, to avoid having a dangling pointer, should the
code change.
PR-URL: https://github.com/libuv/libuv/pull/858
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions