Re: ctrl+C

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kathy Zhu <Kathy(dot)Zhu(at)Sun(dot)COM>, pgsql-general(at)postgresql(dot)org
Subject: Re: ctrl+C
Date: 2003-05-14 15:06:37
Message-ID: 3EC25B7D.80402@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Kathy Zhu <Kathy(dot)Zhu(at)Sun(dot)COM> writes:
>
>> After I do psql, if I hit ctrl+C, it will terminate postmaster.
>
>
> It sounds like you've launched the postmaster from the same shell you
> are running psql in, and the shell thinks that the postmaster is
> still part of the process group it should kill on control-C.
>
> You didn't say what OS this is, but you probably need one or both of:
>
>
> * launch the postmaster from a different shell process (making a
> script to launch it will fix this);
>
> * make sure postmaster's stdin, stdout, stderr are all redirected
> away from the terminal.

On some OSs redirecting does not automatically detach from the control
terminal.

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Browse pgsql-general by date

  From Date Subject
Next Message nolan 2003-05-14 15:09:36 Re: Schedule Jobs in Postgres
Previous Message scott.marlowe 2003-05-14 15:06:27 Re: tips and suggestions