Re: ctrl+C

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kathy Zhu <Kathy(dot)Zhu(at)Sun(dot)COM>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ctrl+C
Date: 2003-05-12 22:22:24
Message-ID: 20145.1052778144@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

regards, tom lane

In response to

  • ctrl+C at 2003-05-12 21:56:57 from Kathy Zhu

Responses

  • Re: ctrl+C at 2003-05-14 15:06:37 from Jan Wieck

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GUNDUZ 2003-05-12 22:26:30 .NET and PostgreSQL
Previous Message Nigel J. Andrews 2003-05-12 22:19:18 Re: ctrl+C