Any possible solution to capture process entry/exit?

I Would like to capture the process `entry`, `exit` and maintain a log for the entire system (probably a daemon process). One approach was to read `/proc` file system periodically and maintain the list, as I do not see the possibility to register `inotify` for `/proc`. Also, for desktop applications, I could get the help of `dbus`, and whenever client registers to desktop, I can capture. But for non-desktop applications, I don't know how to go ahead apart from reading `/proc` periodically. Kindly provide suggestions.
You're probably going to have to write a kernel module; I don't think you can do this from userspace accurately.

以上就是Any possible solution to capture process entry/exit?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准