summaryrefslogtreecommitdiffstats
path: root/cacheserver/utmpsync.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-04-08 22:22:02 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-04-08 22:22:02 +0800
commitb242a2ce5477eca459d9f24444f0b406101621ac (patch)
treeb73d0b78cb1e012e8bc36e13318acd5b668a6b41 /cacheserver/utmpsync.c
parentb7bfd46deceab251fac6204c9ad74327de15ec8b (diff)
downloadpttbbs-b242a2ce5477eca459d9f24444f0b406101621ac.tar
pttbbs-b242a2ce5477eca459d9f24444f0b406101621ac.tar.gz
pttbbs-b242a2ce5477eca459d9f24444f0b406101621ac.tar.bz2
pttbbs-b242a2ce5477eca459d9f24444f0b406101621ac.tar.lz
pttbbs-b242a2ce5477eca459d9f24444f0b406101621ac.tar.xz
pttbbs-b242a2ce5477eca459d9f24444f0b406101621ac.tar.zst
pttbbs-b242a2ce5477eca459d9f24444f0b406101621ac.zip
show error message about connect fail.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3336 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'cacheserver/utmpsync.c')
-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));