summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cacheserver/utmpsync.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cacheserver/utmpsync.c b/cacheserver/utmpsync.c
index 00c9f471..69d1c623 100644
--- a/cacheserver/utmpsync.c
+++ b/cacheserver/utmpsync.c
@@ -8,8 +8,10 @@ int main(int argc, char **argv)
{
int sfd, index, i;
attach_SHM();
- if( (sfd = toconnect(OUTTACACHEHOST, OUTTACACHEPORT)) < 0 )
+ if( (sfd = toconnect(OUTTACACHEHOST, OUTTACACHEPORT)) < 0 ) {
+ printf("connect fail\n");
return 1;
+ }
index = -1;
towrite(sfd, &index, sizeof(index));