File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const pl = process.platform;
1818export const isWindows = pl === 'win32' ;
1919export const isMacos = pl === 'darwin' ;
2020export const isLinux = pl === 'linux' ;
21+ export const isFreeBSD = pl === 'freebsd' ;
2122export const isIBMi = osType ( ) === 'OS400' ;
2223
2324export const EVENTS = {
@@ -433,7 +434,7 @@ export class NodeFsHandler {
433434 if ( ! at || at <= mt || mt !== prevStats . mtimeMs ) {
434435 this . fsw . _emit ( EV . CHANGE , file , newStats ) ;
435436 }
436- if ( ( isMacos || isLinux ) && prevStats . ino !== newStats . ino ) {
437+ if ( ( isMacos || isLinux || isFreeBSD ) && prevStats . ino !== newStats . ino ) {
437438 this . fsw . _closeFile ( path ) ;
438439 prevStats = newStats ;
439440 const closer = this . _watchWithNodeFs ( file , listener ) ;
You can’t perform that action at this time.
0 commit comments