Skip to content

Commit c530ea1

Browse files
committed
Fix bugs in sockhub
1 parent 61c5768 commit c530ea1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pg_dtm/sockhub/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CC = gcc
2-
CFLAGS = -c -I. -Wall -O0 -g
2+
CFLAGS = -c -I. -Wall -O2 -g
33
LD = $(CC)
44
LDFLAGS = -g
55
AR = ar

contrib/pg_dtm/sockhub/sockhub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ void ShubInitialize(Shub* shub, ShubParams* params)
186186
FD_SET(shub->input, &shub->inset);
187187

188188
shub->output = -1;
189+
shub->max_fd = shub->input;
189190
reconnect(shub);
190191

191192
shub->in_buffer = malloc(params->buffer_size);
@@ -195,7 +196,6 @@ void ShubInitialize(Shub* shub, ShubParams* params)
195196
}
196197
shub->in_buffer_used = 0;
197198
shub->out_buffer_used = 0;
198-
shub->max_fd = -1;
199199
}
200200

201201

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy