-1

問題: ctrl +Uは端末プログラムを強制終了しません。


詳細: からの結果は次のssty --allとおりです。

speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?;
swtch = M-^?; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc ixany imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

ご覧のとおり、利用可能なシグナル割り込みについて説明しています:
^C= intr
^ \= quit
^U= kill
etc ...

以下は、無限に実行されるプログラムです。

int main (){while(true){}}

ctrl+C 作品

$./main                                                             
^C
$

ctrl+\ 作品

$./main                                                           
^\[1]    6331 quit (core dumped)  ./main
$

ctrl+U は機能しません
この方法で端末プログラムを強制終了できないのはなぜですか?

もちろん、プロセス ID を見つけて run を実行することもできますがkill -9 <PID>
短縮形を機能させたいと考えています。


私はUbuntuを使用しています:

lsb_release --all 
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:   trusty

これが私の端末の仕様ですが、他の端末も試しました(おそらく関係ありません)

gnome-terminal --version                                           
GNOME Terminal 3.6.2

xterm でも動作しませんでした。
shbash、 ansなど、さまざまなシェルも試しましたzsh

問題は何でしょうか?今どこを見ればいいですか?

4

1 に答える 1