ignore interrupts

This commit is contained in:
rsc 2006-02-09 19:43:07 +00:00
parent bafbb3918a
commit 330e487a1d

View file

@ -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");