From a63f67a2b62190c2dbf87506a1ca5ba5ff395f98 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 29 Apr 2000 11:32:15 +0000 Subject: Do not fault if curproc is null. --- sys/kern/subr_prf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/subr_prf.c') diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index e8d523e..3794ccf 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -110,7 +110,7 @@ uprintf(const char *fmt, ...) struct putchar_arg pca; int retval = 0; - if (p->p_flag & P_CONTROLT && p->p_session->s_ttyvp) { + if (p && p->p_flag & P_CONTROLT && p->p_session->s_ttyvp) { va_start(ap, fmt); pca.tty = p->p_session->s_ttyp; pca.flags = TOTTY; -- cgit v1.1