From: wolffc Date: Wed, 22 Jun 2011 13:55:41 +0000 (+0000) Subject: Make sure a newline is passed to the socket X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=86c64eb44129ee8759dc46e6b3f67fb868db94c3;p=gosa.git Make sure a newline is passed to the socket git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20914 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-si/gosa-si-client b/trunk/gosa-si/gosa-si-client index fa7aecce8..36b55f522 100755 --- a/trunk/gosa-si/gosa-si-client +++ b/trunk/gosa-si/gosa-si-client @@ -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