Permalink
Browse files

Daemonize pending jobs so Cron.exe's loop doesnt stall

  • Loading branch information...
tomas committed Jul 27, 2010
1 parent f2f26c9 commit 8642312a256be2eafc6c2f65cb3168efd1106d1d
Showing with 3 additions and 3 deletions.
  1. +1 −1 core/actions
  2. +1 −1 core/modules
  3. BIN platform/windows/cron.exe
  4. BIN platform/windows/prey-config.exe
  5. +1 −1 prey.sh
View
@@ -108,7 +108,7 @@ run_pending_actions(){
# -m job control enabled
set -bm
- log -e "\n${bold} -- Running pending actions...${bold_end}\n"
+ log "${bold} >> Running pending actions...${bold_end}\n"
for action in "${actions[@]}"; do
local current_module=`echo $action | sed 's/=.*//'`
View
@@ -59,7 +59,7 @@ initialize_module() {
# if there's a language file, lets run it
if [ -f "$module_path/lang/$lang" ]; then
. "$module_path/lang/$lang"
- elif [ -f "$module_path/lang/$lang" ]; then
+ elif [ -f "$module_path/lang/en" ]; then
. "$module_path/lang/en"
fi
View
Binary file not shown.
Binary file not shown.
View
@@ -147,7 +147,7 @@ if [ -z "$status" ]; then
fi
check_running_actions
-run_pending_actions
+run_pending_actions &
delete_tmpdir
exit 0

0 comments on commit 8642312

Please sign in to comment.