inotify file in C

前端 未结 4 1415
悲哀的现实
悲哀的现实 2020-12-20 15:38

I am trying to run an example of inotify in C..but it\'s not working. I want to monitor modifications to a file (the file is tmp.cfg), but it doesn\'t work..I don\'t know if

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-20 16:09

    In watching a file, if the file is manipulated by an editor which you might do to edit it and create a change, it is likely to be doing some operations that results in the original file you asked to watch being deleted. Hence the notifications will stop if you only watch the one file.

提交回复
热议问题