summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-12-19 22:28:09 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-12-19 22:28:09 +0100
commitd0f06e5f3ff7c3095538bade2543bc6a2ed13676 (patch)
tree694781e3a53dfc43422cf9f172b6b6e8d5b96071 /Kernel/Process.cpp
parent1f44cd9dd94f87154234c0d3d12a5be9d6ab6155 (diff)
downloadserenity-d0f06e5f3ff7c3095538bade2543bc6a2ed13676.zip
Automatically call Inode::flush_metadata() before an Inode is destroyed.
Use a little template magic to have Retainable::release() call out to T::will_be_destroyed() if such a function exists before actually calling the destructor. This gives us full access to virtual functions in the pre-destruction code.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 04415ea033..c9b3c18f89 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -1104,7 +1104,7 @@ int Process::sys$utime(const char* pathname, const Unix::utimbuf* buf)
atime = now;
}
inode.set_atime(atime);
- inode.set_mtime(atime);
+ inode.set_mtime(mtime);
inode.flush_metadata();
return 0;
}