ignore interrupts
This commit is contained in:
parent
bafbb3918a
commit
330e487a1d
1 changed files with 10 additions and 0 deletions
|
|
@ -28,6 +28,14 @@ int autoindent;
|
||||||
|
|
||||||
#define chording 0 /* code here for reference but it causes deadlocks */
|
#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
|
void
|
||||||
threadmain(int argc, char *argv[])
|
threadmain(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
@ -51,6 +59,8 @@ threadmain(int argc, char *argv[])
|
||||||
if(open("/dev/tty", OWRITE) < 0)
|
if(open("/dev/tty", OWRITE) < 0)
|
||||||
open("/dev/null", OWRITE);
|
open("/dev/null", OWRITE);
|
||||||
|
|
||||||
|
notify(notifyf);
|
||||||
|
|
||||||
if(protodebug) print("getscreen\n");
|
if(protodebug) print("getscreen\n");
|
||||||
getscreen(argc, argv);
|
getscreen(argc, argv);
|
||||||
if(protodebug) print("iconinit\n");
|
if(protodebug) print("iconinit\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue