From b242a2ce5477eca459d9f24444f0b406101621ac Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 8 Apr 2006 14:22:02 +0000 Subject: show error message about connect fail. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3336 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- cacheserver/utmpsync.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cacheserver/utmpsync.c') 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)); -- cgit v1.2.3