aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <saghul@gmail.com>2016-05-05 17:49:59 +0100
committerSaúl Ibarra Corretgé <saghul@gmail.com>2016-05-05 19:36:44 +0100
commitd43ee0eafa3605d8e4edc1c405a7a08baf00993d (patch)
tree62c081a34ab764bdb2fa329a85e6c401779d28d0 /docs/src
parent2753bc1fc88843a7c1cad37e8bf12572ac03c3e8 (diff)
downloadlibuv-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