Re: persistant psql feature suggestion - Mailing list pgsql-hackers

From PeterKorman
Subject Re: persistant psql feature suggestion
Date
Msg-id 20030629154048.GA11500@eigenvision.com
Whole thread Raw
In response to Re: persistant psql feature suggestion  ("Andrew Dunstan" <andrew@dunslane.net>)
List pgsql-hackers
On Sun, Jun 29, 2003 at 10:22:49AM -0400, Andrew Dunstan wrote:
> OK, worked out the wrinkle. psql is behaving perfectly well, but the shim
> doesn't get a SIGPIPE until it tries to write to it after psql has exited.
> 
> A slightly hackish fix for this would be to put this line after the "print
> $_" line:
> 
>   if ($_ eq "\\q\n") { sleep 1; print " "; } # get SIGPIPE if client gone
> 
> cheers
> 
> andrew

NAME
IPC::Open2, open2 - open a process for both reading and writing 

http://www.perl.com/doc/manual/html/lib/IPC/Open2.html

Would this help?


pgsql-hackers by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Week numbers and years
Next
From: Tom Lane
Date:
Subject: Re: join_references: variable not in subplan target lists