Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc530ea1

Browse files
committed
Fix bugs in sockhub
1 parent61c5768 commitc530ea1

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)

[8]ページ先頭

©2009-2025 Movatter.jp