OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83c759e
)
Avoid clobbering errno, per comment from Tom.
author
Alvaro Herrera
<alvherre@alvh.no-ip.org>
Thu, 16 Dec 2010 20:15:37 +0000
(17:15 -0300)
committer
Alvaro Herrera
<alvherre@alvh.no-ip.org>
Thu, 16 Dec 2010 20:15:37 +0000
(17:15 -0300)
src/port/exec.c
patch
|
blob
|
history
diff --git
a/src/port/exec.c
b/src/port/exec.c
index
cc044ea
..
8aaee2b
100644
(file)
--- a/
src/port/exec.c
+++ b/
src/port/exec.c
@@
-357,8
+357,8
@@
pipe_read_line(char *cmd, char *line, int maxsize)
if (fgets(line, maxsize, pgver) == NULL)
{
- pclose(pgver); /* no error checking */
perror("fgets failure");
+ pclose(pgver); /* no error checking */
return NULL;
}