pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix file descriptor leak after failure of a \setshell command in
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix file descriptor leak after failure of a \setshell command in
@ 2014-12-16 18:32 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2014-12-16 18:32 UTC (permalink / raw)
  To: pgsql-committers

Fix file descriptor leak after failure of a \setshell command in pgbench.

If the called command fails to return data, runShellCommand forgot to
pclose() the pipe before returning.  This is fairly harmless in the current
code, because pgbench would then abandon further processing of that client
thread; so no more than nclients descriptors could be leaked this way.  But
it's not hard to imagine future improvements whereby that wouldn't be true.
In any case, it's sloppy coding, so patch all branches.  Found by Coverity.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d38e8d30cecea96a088330133e232c465a222d0a

Modified Files
--------------
contrib/pgbench/pgbench.c |    1 +
1 file changed, 1 insertion(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix file descriptor leak after failure of a \setshell command in
@ 2014-12-16 18:32 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2014-12-16 18:32 UTC (permalink / raw)
  To: pgsql-committers

Fix file descriptor leak after failure of a \setshell command in pgbench.

If the called command fails to return data, runShellCommand forgot to
pclose() the pipe before returning.  This is fairly harmless in the current
code, because pgbench would then abandon further processing of that client
thread; so no more than nclients descriptors could be leaked this way.  But
it's not hard to imagine future improvements whereby that wouldn't be true.
In any case, it's sloppy coding, so patch all branches.  Found by Coverity.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6c75384eed8770b11f01378b37dc4bd07a5710f1

Modified Files
--------------
contrib/pgbench/pgbench.c |    1 +
1 file changed, 1 insertion(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix file descriptor leak after failure of a \setshell command in
@ 2014-12-16 18:32 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2014-12-16 18:32 UTC (permalink / raw)
  To: pgsql-committers

Fix file descriptor leak after failure of a \setshell command in pgbench.

If the called command fails to return data, runShellCommand forgot to
pclose() the pipe before returning.  This is fairly harmless in the current
code, because pgbench would then abandon further processing of that client
thread; so no more than nclients descriptors could be leaked this way.  But
it's not hard to imagine future improvements whereby that wouldn't be true.
In any case, it's sloppy coding, so patch all branches.  Found by Coverity.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3b750ec155be3b8d658eadd8effe4d3c31955852

Modified Files
--------------
contrib/pgbench/pgbench.c |    1 +
1 file changed, 1 insertion(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix file descriptor leak after failure of a \setshell command in
@ 2014-12-16 18:32 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2014-12-16 18:32 UTC (permalink / raw)
  To: pgsql-committers

Fix file descriptor leak after failure of a \setshell command in pgbench.

If the called command fails to return data, runShellCommand forgot to
pclose() the pipe before returning.  This is fairly harmless in the current
code, because pgbench would then abandon further processing of that client
thread; so no more than nclients descriptors could be leaked this way.  But
it's not hard to imagine future improvements whereby that wouldn't be true.
In any case, it's sloppy coding, so patch all branches.  Found by Coverity.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/5b2c8f04a7cdf161f09ed45c235f0eebf3d88f0d

Modified Files
--------------
contrib/pgbench/pgbench.c |    1 +
1 file changed, 1 insertion(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix file descriptor leak after failure of a \setshell command in
@ 2014-12-16 18:32 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2014-12-16 18:32 UTC (permalink / raw)
  To: pgsql-committers

Fix file descriptor leak after failure of a \setshell command in pgbench.

If the called command fails to return data, runShellCommand forgot to
pclose() the pipe before returning.  This is fairly harmless in the current
code, because pgbench would then abandon further processing of that client
thread; so no more than nclients descriptors could be leaked this way.  But
it's not hard to imagine future improvements whereby that wouldn't be true.
In any case, it's sloppy coding, so patch all branches.  Found by Coverity.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/926da211a38e40f4aec78ccf8aab734bb9b69ba4

Modified Files
--------------
contrib/pgbench/pgbench.c |    1 +
1 file changed, 1 insertion(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix file descriptor leak after failure of a \setshell command in
@ 2014-12-16 18:32 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2014-12-16 18:32 UTC (permalink / raw)
  To: pgsql-committers

Fix file descriptor leak after failure of a \setshell command in pgbench.

If the called command fails to return data, runShellCommand forgot to
pclose() the pipe before returning.  This is fairly harmless in the current
code, because pgbench would then abandon further processing of that client
thread; so no more than nclients descriptors could be leaked this way.  But
it's not hard to imagine future improvements whereby that wouldn't be true.
In any case, it's sloppy coding, so patch all branches.  Found by Coverity.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/961df18531b9e13be31b024329053a9d9e1556af

Modified Files
--------------
contrib/pgbench/pgbench.c |    1 +
1 file changed, 1 insertion(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2014-12-16 18:32 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-12-16 18:32 pgsql: Fix file descriptor leak after failure of a \setshell command in Tom Lane <tgl@sss.pgh.pa.us>
2014-12-16 18:32 pgsql: Fix file descriptor leak after failure of a \setshell command in Tom Lane <tgl@sss.pgh.pa.us>
2014-12-16 18:32 pgsql: Fix file descriptor leak after failure of a \setshell command in Tom Lane <tgl@sss.pgh.pa.us>
2014-12-16 18:32 pgsql: Fix file descriptor leak after failure of a \setshell command in Tom Lane <tgl@sss.pgh.pa.us>
2014-12-16 18:32 pgsql: Fix file descriptor leak after failure of a \setshell command in Tom Lane <tgl@sss.pgh.pa.us>
2014-12-16 18:32 pgsql: Fix file descriptor leak after failure of a \setshell command in Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox