I know that /proc is a pseudo filesystem which makes it impossible to use inotify API.
Some parts of /proc can be monitored with select/poll API (like /proc/mounts). So I'm wondering is it possible to monitor /proc/pid/statm in that way?
Since all the data found in /proc/pid/statm is generated by the kernel on the fly my guess is that select/poll wouldn't work. So is there any other solution available for me to accomplish what I want, except from reading /proc/pid/statm periodically?