summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5cfe7e4)
raw | patch | inline | side by side (parent: 5cfe7e4)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Mar 2008 09:18:41 +0000 (09:18 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Mar 2008 09:18:41 +0000 (09:18 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9891 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-server | patch | blob | history |
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index 747435d90df970380907fa233b5209d841e00444..ca0420dd627a43fd55f5e93fc99133e553cefee2 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
$SIG{INT} = \&sig_int_handler;
-
sub check_key_and_xml_validity {
my ($crypted_msg, $module_key, $session_id) = @_;
my $msg;
&trigger_db_loop($kernel);
$kernel->yield('create_fai_server_db', $fai_server_tn );
#$kernel->yield('create_fai_release_db', $fai_release_tn );
+ $kernel->sig(USR1 => "sig_handler");
}
+
+sub sig_handler {
+ my ($kernel, $signal) = @_[KERNEL, ARG0] ;
+ daemon_log("0 INFO got signal '$signal'", 7);
+ $kernel->sig_handled();
+ return;
+}
+
+
sub next_task {
my ($session, $heap) = @_[SESSION, HEAP];
@@ -2151,6 +2160,7 @@ daemon_log("start socket for incoming xml messages at port '$server_port' ", 1);
POE::Session->create(
inline_states => {
_start => \&_start,
+ sig_handler => \&sig_handler,
watch_for_new_jobs => \&watch_for_new_jobs,
watch_for_done_jobs => \&watch_for_done_jobs,
create_packages_list_db => \&run_create_packages_list_db,