From owner-freebsd-questions Mon Mar 22 13:13:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id BDA2B15238 for ; Mon, 22 Mar 1999 13:13:31 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from scientia.demon.co.uk (ident=ben) by scientia.demon.co.uk with local (Exim 2.12 #4) id 10P9XX-000PTj-00; Mon, 22 Mar 1999 18:35:07 +0000 (envelope-from ben@scientia.demon.co.uk) Date: Mon, 22 Mar 1999 18:35:07 +0000 From: Ben Smithurst To: Karl Pielorz Cc: Masahiro Ariga , freebsd-questions@FreeBSD.ORG Subject: Re: how to die gracefully Message-ID: <19990322183507.A97838@scientia.demon.co.uk> References: <000501be7472$3bbeb400$064ca8c0@gateway> <36F65B11.610DAE9D@tdx.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <36F65B11.610DAE9D@tdx.co.uk> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Karl Pielorz wrote: > Masahiro Ariga wrote: > >> 2.I like to catch the signal when pushed Ctl^C,and make a handler >> routine.Would you tell me what signal I can catch when enterring Ctl^C ? > > SIGQUIT I think - check the man pages out (man signal)... SIGINT on my system, $ stty -a speed 115200 baud; 25 rows; 80 columns; lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo -extproc iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -oxtabs cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ; eol2 = ; erase = ^H; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W; I'm guessing you can change it though. ^C does SIGINT by default though, AFAIK. -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message