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;
|
struct putchar_arg pca;
|
||||||
int retval = 0;
|
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);
|
va_start(ap, fmt);
|
||||||
pca.tty = p->p_session->s_ttyp;
|
pca.tty = p->p_session->s_ttyp;
|
||||||
pca.flags = TOTTY;
|
pca.flags = TOTTY;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user