mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
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 */
|
||||
|
||||
void
|
||||
notifyf(void *a, char *msg)
|
||||
{
|
||||
if(strcmp(msg, "interrupt") == 0)
|
||||
noted(NCONT);
|
||||
noted(NDFLT);
|
||||
}
|
||||
|
||||
void
|
||||
threadmain(int argc, char *argv[])
|
||||
{
|
||||
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue