Use setitimer() for stats file write, rather than do a gettimeofday() call for every stats packet read to adjust select() timeout.  Other stylistic improvements.
Use setitimer() for stats file write, rather than do a gettimeofday()
call for every stats packet read to adjust select() timeout.  Other
stylistic improvements.

xuegang/gpdb,zeroae/postgres-xl,janebeckman/gpdb,kaknikhil/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,Postgres-XL/Postgres-XL,50wu/gpdb,yuanzhao/gpdb,royc1/gpdb,Chibin/gpdb,adam8157/gpdb,tangp3/gpdb,yazun/postgres-xl,50wu/gpdb,jmcatamney/gpdb,ahachete/gpdb,greenplum-db/gpdb,Chibin/gpdb,zaksoup/gpdb,royc1/gpdb,edespino/gpdb,rubikloud/gpdb,edespino/gpdb,ovr/postgres-xl,chrishajas/gpdb,foyzur/gpdb,ahachete/gpdb,edespino/gpdb,ashwinstar/gpdb,adam8157/gpdb,lpetrov-pivotal/gpdb,lpetrov-pivotal/gpdb,edespino/gpdb,postmind-net/postgres-xl,janebeckman/gpdb,CraigHarris/gpdb,lpetrov-pivotal/gpdb,yazun/postgres-xl,arcivanov/postgres-xl,greenplum-db/gpdb,tpostgres-projects/tPostgres,rvs/gpdb,lisakowen/gpdb,greenplum-db/gpdb,arcivanov/postgres-xl,janebeckman/gpdb,Quikling/gpdb,lintzc/gpdb,snaga/postgres-xl,techdragon/Postgres-XL,yazun/postgres-xl,rvs/gpdb,Quikling/gpdb,xuegang/gpdb,CraigHarris/gpdb,atris/gpdb,ahachete/gpdb,chrishajas/gpdb,royc1/gpdb,ahachete/gpdb,yazun/postgres-xl,Quikling/gpdb,Chibin/gpdb,snaga/postgres-xl,atris/gpdb,CraigHarris/gpdb,lpetrov-pivotal/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,chrishajas/gpdb,rvs/gpdb,chrishajas/gpdb,cjcjameson/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,lintzc/gpdb,50wu/gpdb,atris/gpdb,rvs/gpdb,xuegang/gpdb,janebeckman/gpdb,Quikling/gpdb,kaknikhil/gpdb,janebeckman/gpdb,atris/gpdb,chrishajas/gpdb,zaksoup/gpdb,rvs/gpdb,yuanzhao/gpdb,chrishajas/gpdb,adam8157/gpdb,techdragon/Postgres-XL,pavanvd/postgres-xl,xinzweb/gpdb,royc1/gpdb,xinzweb/gpdb,cjcjameson/gpdb,Chibin/gpdb,zeroae/postgres-xl,rubikloud/gpdb,rvs/gpdb,tpostgres-projects/tPostgres,edespino/gpdb,atris/gpdb,lintzc/gpdb,tangp3/gpdb,atris/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,xinzweb/gpdb,snaga/postgres-xl,xinzweb/gpdb,atris/gpdb,ahachete/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,xuegang/gpdb,lintzc/gpdb,randomtask1155/gpdb,tpostgres-projects/tPostgres,lintzc/gpdb,adam8157/gpdb,foyzur/gpdb,yuanzhao/gpdb,0x0FFF/gpdb,janebeckman/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,rvs/gpdb,kaknikhil/gpdb,adam8157/gpdb,randomtask1155/gpdb,rubikloud/gpdb,techdragon/Postgres-XL,50wu/gpdb,janebeckman/gpdb,kmjungersen/PostgresXL,cjcjameson/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,oberstet/postgres-xl,foyzur/gpdb,oberstet/postgres-xl,rubikloud/gpdb,jmcatamney/gpdb,50wu/gpdb,zaksoup/gpdb,lisakowen/gpdb,tangp3/gpdb,arcivanov/postgres-xl,edespino/gpdb,janebeckman/gpdb,lisakowen/gpdb,lisakowen/gpdb,0x0FFF/gpdb,lintzc/gpdb,zeroae/postgres-xl,lintzc/gpdb,kaknikhil/gpdb,edespino/gpdb,0x0FFF/gpdb,yuanzhao/gpdb,xuegang/gpdb,rubikloud/gpdb,arcivanov/postgres-xl,ovr/postgres-xl,0x0FFF/gpdb,foyzur/gpdb,CraigHarris/gpdb,foyzur/gpdb,zaksoup/gpdb,cjcjameson/gpdb,Quikling/gpdb,xuegang/gpdb,xuegang/gpdb,Quikling/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,chrishajas/gpdb,lisakowen/gpdb,adam8157/gpdb,oberstet/postgres-xl,rvs/gpdb,xinzweb/gpdb,lisakowen/gpdb,royc1/gpdb,yuanzhao/gpdb,Postgres-XL/Postgres-XL,rvs/gpdb,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,rvs/gpdb,Quikling/gpdb,lisakowen/gpdb,pavanvd/postgres-xl,cjcjameson/gpdb,arcivanov/postgres-xl,lintzc/gpdb,tangp3/gpdb,edespino/gpdb,kmjungersen/PostgresXL,snaga/postgres-xl,oberstet/postgres-xl,50wu/gpdb,CraigHarris/gpdb,kmjungersen/PostgresXL,0x0FFF/gpdb,snaga/postgres-xl,ashwinstar/gpdb,postmind-net/postgres-xl,Chibin/gpdb,Quikling/gpdb,Chibin/gpdb,royc1/gpdb,Chibin/gpdb,kaknikhil/gpdb,50wu/gpdb,tpostgres-projects/tPostgres,50wu/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,Chibin/gpdb,Postgres-XL/Postgres-XL,zaksoup/gpdb,tangp3/gpdb,randomtask1155/gpdb,CraigHarris/gpdb,Quikling/gpdb,atris/gpdb,0x0FFF/gpdb,xinzweb/gpdb,zaksoup/gpdb,CraigHarris/gpdb,Chibin/gpdb,royc1/gpdb,kaknikhil/gpdb,Chibin/gpdb,rubikloud/gpdb,randomtask1155/gpdb,lisakowen/gpdb,greenplum-db/gpdb,lpetrov-pivotal/gpdb,janebeckman/gpdb,tpostgres-projects/tPostgres,Postgres-XL/Postgres-XL,royc1/gpdb,tangp3/gpdb,ovr/postgres-xl,foyzur/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,kmjungersen/PostgresXL,ahachete/gpdb,adam8157/gpdb,rubikloud/gpdb,kaknikhil/gpdb,ovr/postgres-xl,yuanzhao/gpdb,arcivanov/postgres-xl,yuanzhao/gpdb,yuanzhao/gpdb,tangp3/gpdb,edespino/gpdb,kaknikhil/gpdb,xinzweb/gpdb,adam8157/gpdb,xinzweb/gpdb,zaksoup/gpdb,ahachete/gpdb,tangp3/gpdb,rubikloud/gpdb,postmind-net/postgres-xl,ahachete/gpdb,lpetrov-pivotal/gpdb,lintzc/gpdb,postmind-net/postgres-xl,kmjungersen/PostgresXL,chrishajas/gpdb,lpetrov-pivotal/gpdb,janebeckman/gpdb,oberstet/postgres-xl,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,greenplum-db/gpdb,yazun/postgres-xl,foyzur/gpdb,xuegang/gpdb,foyzur/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,zeroae/postgres-xl,CraigHarris/gpdb,Quikling/gpdb,randomtask1155/gpdb,kaknikhil/gpdb,yuanzhao/gpdb,ovr/postgres-xl,techdragon/Postgres-XL,edespino/gpdb,ashwinstar/gpdb,xuegang/gpdb,cjcjameson/gpdb,pavanvd/postgres-xl,zaksoup/gpdb