Fix improperly passed file descriptors
Fix improperly passed file descriptors

Fix for commit 14ea89366fe321609afc5838ff9fe2ded1cd707d

Report by Andres Freund

ashwinstar/gpdb,greenplum-db/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,oberstet/postgres-xl,jmcatamney/gpdb,yazun/postgres-xl,lisakowen/gpdb,jmcatamney/gpdb,50wu/gpdb,pavanvd/postgres-xl,pavanvd/postgres-xl,adam8157/gpdb,50wu/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,50wu/gpdb,oberstet/postgres-xl,lisakowen/gpdb,greenplum-db/gpdb,50wu/gpdb,lisakowen/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,greenplum-db/gpdb,yazun/postgres-xl,adam8157/gpdb,ashwinstar/gpdb,50wu/gpdb,Postgres-XL/Postgres-XL,ovr/postgres-xl,zeroae/postgres-xl,pavanvd/postgres-xl,ashwinstar/gpdb,xinzweb/gpdb,oberstet/postgres-xl,xinzweb/gpdb,lisakowen/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,xinzweb/gpdb,pavanvd/postgres-xl,xinzweb/gpdb,xinzweb/gpdb,xinzweb/gpdb,Postgres-XL/Postgres-XL,lisakowen/gpdb,ashwinstar/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,50wu/gpdb,zeroae/postgres-xl,adam8157/gpdb,techdragon/Postgres-XL,yazun/postgres-xl,Postgres-XL/Postgres-XL,ovr/postgres-xl,adam8157/gpdb,yazun/postgres-xl,greenplum-db/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,techdragon/Postgres-XL,zeroae/postgres-xl,adam8157/gpdb,ovr/postgres-xl,jmcatamney/gpdb,lisakowen/gpdb,ovr/postgres-xl,adam8157/gpdb,yazun/postgres-xl,xinzweb/gpdb,ovr/postgres-xl,zeroae/postgres-xl,lisakowen/gpdb,greenplum-db/gpdb,techdragon/Postgres-XL,50wu/gpdb,adam8157/gpdb,oberstet/postgres-xl,oberstet/postgres-xl,ashwinstar/gpdb,50wu/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,ashwinstar/gpdb,xinzweb/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL