Stop signals being generated after meteor_close.

Update METEORSSIGNAL to disable signals by setting the signal to 0.

PR:		i386/10533
Submitted by:	Frode Vatvedt Fjeld <frodef@dslab7.cs.uit.no>
This commit is contained in:
roger 1999-06-29 16:45:51 +00:00
parent e476cc2667
commit 060912ef41

View File

@ -1242,6 +1242,7 @@ meteor_close(dev_t dev, int flags, int fmt, struct proc *p)
*/
mtr->base->cap_cntl = 0x8ff0;
mtr->flags &= ~(METEOR_CAP_MASK|METEOR_WANT_MASK);
mtr->proc = (struct proc *)0;
#ifdef METEOR_DEALLOC_PAGES
if (mtr->bigbuf != NULL) {
@ -1402,7 +1403,11 @@ meteor_ioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc *pr)
break;
case METEORSSIGNAL:
mtr->signal = *(int *) arg;
mtr->proc = pr;
if (mtr->signal) {
mtr->proc = pr;
} else {
mtr->proc = (struct proc *)0;
}
break;
case METEORGSIGNAL:
*(int *)arg = mtr->signal;