in reply to Re^2: Find the Files added to the directory in Linux.
in thread Find the Files added to the directory in Linux.
No, sleep and usleep would be counter productive and just slow detection down. The whole beauty of iNotify is that the process sleeps until an event happens, and then its woken by the kernel and passed the event structure. The code as is takes next to zero system resources.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Find the Files added to the directory in Linux.
by flexvault (Monsignor) on Jul 05, 2013 at 11:34 UTC | |
by Loops (Curate) on Jul 05, 2013 at 11:38 UTC |