Fixed inotify mechanism.

This commit is contained in:
Louwrentius 2010-07-18 09:42:29 +00:00
parent 1575fb28f6
commit 3ec86b451e
1 changed files with 6 additions and 2 deletions

8
ppss
View File

@ -77,7 +77,7 @@ PROCESSORS=""
START_KEY="$RANDOM$RANDOM$RANDOM" START_KEY="$RANDOM$RANDOM$RANDOM"
KILL_KEY="$RANDOM$RANDOM$RANDOM" # This is a signal to stop immediately and kill KILL_KEY="$RANDOM$RANDOM$RANDOM" # This is a signal to stop immediately and kill
QUEUE="" QUEUE=""
INOTIFY=0 INOTIFY=""
RECURSION="1" # all running processes. RECURSION="1" # all running processes.
START_PPSS="" START_PPSS=""
STOP_PPSS="" STOP_PPSS=""
@ -452,7 +452,7 @@ is_var_empty () {
detect_inotify () { detect_inotify () {
if [ -e /usr/bin/inotifywait ] if [ -e /usr/bin/inotifywait ] && [ ! "$INOTIFY" = "0" ]
then then
INOTIFY=1 INOTIFY=1
fi fi
@ -542,6 +542,10 @@ process_arguments () {
MAX_DELAY="$2" MAX_DELAY="$2"
add_var_to_config MAX_DELAY "$MAX_DELAY" add_var_to_config MAX_DELAY "$MAX_DELAY"
shift 2 ;; shift 2 ;;
--disable-inotify)
INOTIFY=0
add_var_to_config INOTIFY "$INOTIFY"
shift 1 ;;
--daemon) --daemon)
DAEMON="1" DAEMON="1"
QUIET="1" QUIET="1"