Code

Make sure a newline is passed to the socket
authorwolffc <wolffc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Jun 2011 13:55:41 +0000 (13:55 +0000)
committerwolffc <wolffc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Jun 2011 13:55:41 +0000 (13:55 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20914 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-si/gosa-si-client

index fa7aecce8c666602ee5454ca925d37b1e76c74ae..36b55f5227841a6d15fdf7e28e6d11ecb409ea24 100755 (executable)
@@ -828,8 +828,11 @@ sub trigger_logged_in_users_report {
            $kernel->delay_set('trigger_logged_in_users_report', 30);
        }
        else {
-           print($FIFO_FD 'CURRENTLY_LOGGED_IN ' . join(" ", @logged_in_user_list));
-        $kernel->delay_set('trigger_logged_in_users_report', $trigger_logged_in_users_report_delay);
+           print($FIFO_FD 'CURRENTLY_LOGGED_IN ' . join(" ", @logged_in_user_list)."\n");
+           close($FIFO_FD);
+           my $userlist = join(" ", @logged_in_user_list);
+           daemon_log("DEBUG: Sent logged in user list to server: $userlist", 5);
+           $kernel->delay_set('trigger_logged_in_users_report', $trigger_logged_in_users_report_delay);
        }
     } else {
         # try it in 10 sec again