Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Daemonize pending jobs so Cron.exe's loop doesnt stall
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas committed Jul 27, 2010
1 parent f2f26c9 commit 8642312
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/actions
Expand Up @@ -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/=.*//'`
Expand Down
2 changes: 1 addition & 1 deletion core/modules
Expand Up @@ -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

Expand Down
Binary file modified platform/windows/cron.exe
Binary file not shown.
Binary file modified platform/windows/prey-config.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion prey.sh
Expand Up @@ -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.