Do not fault if curproc is null.
This commit is contained in:
parent
00f2105c72
commit
a63f67a2b6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user