plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 330e487a1d3e2c65fc1132e8752f95e4fa4857df
parent bafbb3918af74080aebc6efeb722dae9a49462b7
Author: rsc <devnull@localhost>
Date:   Thu,  9 Feb 2006 19:43:07 +0000

ignore interrupts

Diffstat:
Msrc/cmd/samterm/main.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/cmd/samterm/main.c b/src/cmd/samterm/main.c @@ -29,6 +29,14 @@ int autoindent; #define chording 0 /* code here for reference but it causes deadlocks */ void +notifyf(void *a, char *msg) +{ + if(strcmp(msg, "interrupt") == 0) + noted(NCONT); + noted(NDFLT); +} + +void threadmain(int argc, char *argv[]) { int i, got, scr, w; @@ -51,6 +59,8 @@ threadmain(int argc, char *argv[]) if(open("/dev/tty", OWRITE) < 0) open("/dev/null", OWRITE); + notify(notifyf); + if(protodebug) print("getscreen\n"); getscreen(argc, argv); if(protodebug) print("iconinit\n");