Re: [HACKERS] pg_ctl {start,restart,reload} bad handling of stdout file descriptor

2014-12-30 Thread Tom Lane
Luis Menina writes: > I've been trying to run some pg_ctl command inside a python script, > and saw that some of them where deadlocking. It seems that the > commands that start postgres handle stdout in a way that that block > the caller. Redirecting stdout to /dev/null or to a file using the -l >

Re: [HACKERS] pg_ctl {start,restart,reload} bad handling of stdout file descriptor

2014-12-30 Thread Luis Menina
I knew I'd forget something... I'm running Postgres 9.3.5 on Debian/Linux. Regards, -- Luis MENINA / Software Engineer Web: www.anevia.com Anevia: 1 rue René Anjolvy, 94250 Gentilly, France -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscriptio

[HACKERS] pg_ctl {start,restart,reload} bad handling of stdout file descriptor

2014-12-30 Thread Luis Menina
Hi, I've been trying to run some pg_ctl command inside a python script, and saw that some of them where deadlocking. It seems that the commands that start postgres handle stdout in a way that that block the caller. Redirecting stdout to /dev/null or to a file using the -l option allow me to workar