Skip to content

Commit 1cff86a

Browse files
committed
Fix the following two issues in pgxc_ctl for release 1.2.
May need similar fix in the master as well. 1) Duplicate tpedef from libpq and pgxc_ctl 2) Implicit definition of createLocalFileName() function.
1 parent c049a43 commit 1cff86a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pgxc_ctl/do_shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void prepareStdout(cmdList_t *cmdList);
6060
*/
6161
jmp_buf *whereToJumpDoShell = NULL;
6262
jmp_buf dcJmpBufDoShell;
63-
pqsigfunc old_HandlerDoShell = NULL;
63+
pgxcsigfunc old_HandlerDoShell = NULL;
6464
void do_shell_SigHandler(int signum);
6565

6666
/*

contrib/pgxc_ctl/do_shell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
extern void dcSigHandler(int signum);
1515
typedef enum FileType { STDIN, STDOUT, STDERR, GENERAL } FileType;
16-
typedef void (*pqsigfunc) (int);
16+
typedef void (*pgxcsigfunc) (int signo);
1717
extern char *createLocalFileName(FileType type, char *buf, int len);
1818
extern char *createRemoteFileName(FileType type, char *buf, int len);
1919
extern int doImmediate(char *host, char *stdIn, const char *cmd_fmt, ...) __attribute__((format(printf, 3, 4)));

0 commit comments

Comments
 (0)