Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 1999 18:35:07 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Karl Pielorz <kpielorz@tdx.co.uk>
Cc:        Masahiro Ariga <mariga@cd.mbn.or.jp>, freebsd-questions@FreeBSD.ORG
Subject:   Re: how to die gracefully
Message-ID:  <19990322183507.A97838@scientia.demon.co.uk>
In-Reply-To: <36F65B11.610DAE9D@tdx.co.uk>
References:  <000501be7472$3bbeb400$064ca8c0@gateway> <36F65B11.610DAE9D@tdx.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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 = <undef>;
	eol2 = <undef>; 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990322183507.A97838>