diff options
author | Greg Hudson <ghudson@mit.edu> | 2000-04-05 10:57:36 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2000-04-05 10:57:36 +0000 |
commit | 830369ac28a04b936c8dceb3561f49a4c119ff25 (patch) | |
tree | b3fc45f9547251a679dbd5e9a337f84fa3936096 /zhm/zhm_client.c | |
parent | 80a99d606ab7549a05d853aa2e40922518e99dca (diff) |
Add support for -f to disable client flushing.
Diffstat (limited to 'zhm/zhm_client.c')
-rw-r--r-- | zhm/zhm_client.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/zhm/zhm_client.c b/zhm/zhm_client.c index 539c43a..6ee448b 100644 --- a/zhm/zhm_client.c +++ b/zhm/zhm_client.c @@ -18,7 +18,7 @@ static char rcsid_hm_client_c[] = "$Id$"; #endif /* SABER */ #endif /* lint */ -extern int no_server, nclt, deactivated; +extern int no_server, nclt, deactivated, noflushflag; extern struct sockaddr_in cli_sin, serv_sin, from; void transmission_tower(notice, packet, pak_len) @@ -33,8 +33,12 @@ void transmission_tower(notice, packet, pak_len) nclt++; if (notice->z_kind == HMCTL) { if (!strcmp(notice->z_opcode, CLIENT_FLUSH)) { - send_flush_notice(HM_FLUSH); - deactivated = 1; + if (noflushflag) + syslog(LOG_INFO, "Client requested hm flush (disabled)."); + else { + send_flush_notice(HM_FLUSH); + deactivated = 1; + } } else if (!strcmp(notice->z_opcode, CLIENT_NEW_SERVER)) { new_server((char *)NULL); } else { |