mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
b1a429edf6
PR: 243244 Submitted by: mzaki@e-mail.ne.jp (maintainer)
12 lines
452 B
C
12 lines
452 B
C
--- src/hmmc2.c.orig 2019-11-18 13:23:12 UTC
|
|
+++ src/hmmc2.c
|
|
@@ -334,7 +334,7 @@ int main(int argc, char *argv[])
|
|
n = sizeof(sstatus);
|
|
total += n;
|
|
if ((size = readn(sock, &sstatus, n)) == -1) {
|
|
- if(errno == 104 || errno == 0){
|
|
+ if(errno == ECONNRESET || errno == 0){
|
|
// connection was reset, usually because server exited
|
|
fprintf(stderr, "Daemon exited, shutting down\n");
|
|
exit(0);
|