Do not fault if curproc is null.

This commit is contained in:
peter 2000-04-29 11:32:15 +00:00
parent 00f2105c72
commit a63f67a2b6

View File

@ -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;