Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c05ac806
Commit
c05ac806
authored
Jul 15, 2010
by
mattijs
Browse files
BUG: fileMonitor : did not handle combined messages
parent
c1b9a67a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OSspecific/POSIX/fileMonitor.C
View file @
c05ac806
...
...
@@ -257,24 +257,21 @@ void Foam::fileMonitor::checkFiles() const
// << "watchFd:" << inotifyEvent.wd << nl
// << "watchName:" << watchFile_[inotifyEvent.wd] << endl;
switch
(
inotifyEvent
.
mask
)
if
(
inotifyEvent
.
mask
%
IN_DELETE_SELF
)
{
case
IN_DELETE_SELF
:
{
Map
<
fileState
>::
iterator
iter
=
state_
.
find
(
label
(
inotifyEvent
.
wd
));
iter
()
=
DELETED
;
}
break
;
case
IN_MODIFY
:
case
IN_CLOSE_WRITE
:
{
Map
<
fileState
>::
iterator
iter
=
state_
.
find
(
label
(
inotifyEvent
.
wd
));
iter
()
=
MODIFIED
;
}
break
;
Map
<
fileState
>::
iterator
iter
=
state_
.
find
(
label
(
inotifyEvent
.
wd
));
iter
()
=
DELETED
;
}
else
if
(
(
inotifyEvent
.
mask
%
IN_MODIFY
)
||
(
inotifyEvent
.
mask
%
IN_CLOSE_WRITE
)
)
{
Map
<
fileState
>::
iterator
iter
=
state_
.
find
(
label
(
inotifyEvent
.
wd
));
iter
()
=
MODIFIED
;
}
}
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment