Getting wrong file creation date & vnode creation date in user process and kauth system respectively.
Getting wrong file creation date & vnode creation date in user process and kauth system respectively.
- Subject: Getting wrong file creation date & vnode creation date in user process and kauth system respectively.
- From: simran charley <email@hidden>
- Date: Wed, 14 May 2014 10:31:18 +0530
Hello,
I am using kauth system to monitor file specific changes.
In my KAUTH_FILEOP_SCOPE listener when I am getting any notification I send(enqueue) it to the user process.
In the user process when I tried to access file creation date using
[[NSFileManager defaultManager] attributesOfItemAtPath:path error:&error];
it came as 1 Jan 1904.
I tried passing vnode creation time to user process in KAUTH_FILEOP_CLOSE case
It is also 1 Jan 1904.
[NSDate dateWithTimeIntervalSince1970:-2082844800];
And if I introduce sleep in user process for suppose 2 to 3 seconds. I am getting correct creation date.
Why system behaving like that?
Weather I am doing any thing wrong?
I have searched and do many R&D to find solution but no success.
What will be the solution as I do not want sleep in my program?
Thanks and regards
Simran
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden