Change the calls to panic() in uifree(), chgproccnt(), and chgsbsize()
to printf(). Any errors detected are not likely to be fatal, so it should be safe to let things keep running.
This commit is contained in:
parent
5a01880bbf
commit
c5930ee45a
@ -725,10 +725,10 @@ uifree(uip)
|
||||
if (--uip->ui_ref == 0) {
|
||||
if (uip->ui_sbsize != 0)
|
||||
/* XXX no %qd in kernel. Truncate. */
|
||||
panic("freeing uidinfo: uid = %d, sbsize = %ld",
|
||||
printf("freeing uidinfo: uid = %d, sbsize = %ld",
|
||||
uip->ui_uid, (long)uip->ui_sbsize);
|
||||
if (uip->ui_proccnt != 0)
|
||||
panic("freeing uidinfo: uid = %d, proccnt = %ld",
|
||||
printf("freeing uidinfo: uid = %d, proccnt = %ld",
|
||||
uip->ui_uid, uip->ui_proccnt);
|
||||
LIST_REMOVE(uip, ui_hash);
|
||||
FREE(uip, M_UIDINFO);
|
||||
@ -752,7 +752,7 @@ chgproccnt(uip, diff, max)
|
||||
return (0);
|
||||
uip->ui_proccnt += diff;
|
||||
if (uip->ui_proccnt < 0)
|
||||
panic("negative proccnt for uid = %d", uip->ui_uid);
|
||||
printf("negative proccnt for uid = %d", uip->ui_uid);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@ -779,7 +779,7 @@ chgsbsize(uip, hiwat, to, max)
|
||||
uip->ui_sbsize = new;
|
||||
*hiwat = to;
|
||||
if (uip->ui_sbsize < 0)
|
||||
panic("negative sbsize for uid = %d", uip->ui_uid);
|
||||
printf("negative sbsize for uid = %d", uip->ui_uid);
|
||||
splx(s);
|
||||
return (1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user