Do not fault if curproc is null.

This commit is contained in:
Peter Wemm 2000-04-29 11:32:15 +00:00
parent ef83592d2c
commit 7c3fdf6bbc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59745

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;