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

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


Would this help?

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to