summaryrefslogtreecommitdiff
path: root/sys/src/cmd/ip
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-08-13 21:46:13 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-08-13 21:46:13 +0200
commit508b53a29a74d2ded6b15ffc8be0a182b258869a (patch)
tree378b0cdfc49a14d4b26ac1f1171600fe67752428 /sys/src/cmd/ip
parentdf9597ecde1687ac037101314b477c0f01d3b6a6 (diff)
libdraw: fix leftover processes or programs failing to restore window labels when receiving interrupt note
fix the default note handler for event programs. only handle non system notes or notes in the slave processes. for interrupt in the main process, just call exits() which will do the cleanup and restore window label properly. this makes completely overriding the note handler in gping and stats uneccesary.
Diffstat (limited to 'sys/src/cmd/ip')
-rw-r--r--sys/src/cmd/ip/gping.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/src/cmd/ip/gping.c b/sys/src/cmd/ip/gping.c
index ad5d89172..ebc8d57ac 100644
--- a/sys/src/cmd/ip/gping.c
+++ b/sys/src/cmd/ip/gping.c
@@ -630,16 +630,6 @@ lostval(Machine *m, long *v, long *vmax, long *mark)
*vmax = 100;
}
-jmp_buf catchalarm;
-
-void
-alarmed(void *a, char *s)
-{
- if(strcmp(s, "alarm") == 0)
- notejmp(a, catchalarm, 1);
- noted(NDFLT);
-}
-
void
usage(void)
{
@@ -1030,7 +1020,6 @@ main(int argc, char *argv[])
}
colinit();
einit(Emouse);
- notify(nil);
startproc(mouseproc, 0);
display->locking = 1; /* tell library we're using the display lock */