diff --git a/checkin_notes b/checkin_notes index b40077140e..efc1eeb3a2 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2540,3 +2540,10 @@ David 10 Mar 2012 vda/ stats.cpp,h (new) + +Bernd 12 Mar 2012 + - scheduler: remove lock file when scheduler caught SIGTERM + + sched/ + handle_request.h + sched_main.cpp diff --git a/sched/handle_request.h b/sched/handle_request.h index 11553b6f58..d85d974f20 100644 --- a/sched/handle_request.h +++ b/sched/handle_request.h @@ -20,3 +20,5 @@ extern void handle_request( FILE* fin, FILE* fout, char* code_sign_key ); + +extern void unlock_sched(void); diff --git a/sched/sched_main.cpp b/sched/sched_main.cpp index efdca4ce65..2a2833653b 100644 --- a/sched/sched_main.cpp +++ b/sched/sched_main.cpp @@ -210,6 +210,7 @@ void sigterm_handler(int /*signo*/) { log_messages.printf(MSG_CRITICAL, "Caught SIGTERM (sent by Apache); exiting\n" ); + unlock_sched(); fflush((FILE*)NULL); exit(1); return;