Add '\n' to "fork failed" trace messages.

This commit is contained in:
dsl 2003-11-14 10:27:10 +00:00
parent 438ae29810
commit edecd89511
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: eval.c,v 1.74 2003/08/07 09:05:30 agc Exp $ */ /* $NetBSD: eval.c,v 1.75 2003/11/14 10:27:10 dsl Exp $ */
/*- /*-
* Copyright (c) 1993 * Copyright (c) 1993
@ -37,7 +37,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)eval.c 8.9 (Berkeley) 6/8/95"; static char sccsid[] = "@(#)eval.c 8.9 (Berkeley) 6/8/95";
#else #else
__RCSID("$NetBSD: eval.c,v 1.74 2003/08/07 09:05:30 agc Exp $"); __RCSID("$NetBSD: eval.c,v 1.75 2003/11/14 10:27:10 dsl Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -816,7 +816,7 @@ evalcommand(union node *cmd, int flags, struct backcmd *backcmd)
vforked = 1; vforked = 1;
switch (pid = vfork()) { switch (pid = vfork()) {
case -1: case -1:
TRACE(("Vfork failed, errno=%d", errno)); TRACE(("Vfork failed, errno=%d\n", errno));
INTON; INTON;
error("Cannot vfork"); error("Cannot vfork");
break; break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: jobs.c,v 1.59 2003/08/26 18:12:33 jmmv Exp $ */ /* $NetBSD: jobs.c,v 1.60 2003/11/14 10:27:10 dsl Exp $ */
/*- /*-
* Copyright (c) 1991, 1993 * Copyright (c) 1991, 1993
@ -37,7 +37,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95"; static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
#else #else
__RCSID("$NetBSD: jobs.c,v 1.59 2003/08/26 18:12:33 jmmv Exp $"); __RCSID("$NetBSD: jobs.c,v 1.60 2003/11/14 10:27:10 dsl Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -842,7 +842,7 @@ forkshell(struct job *jp, union node *n, int mode)
TRACE(("forkshell(%%%d, %p, %d) called\n", jp - jobtab, n, mode)); TRACE(("forkshell(%%%d, %p, %d) called\n", jp - jobtab, n, mode));
switch ((pid = fork())) { switch ((pid = fork())) {
case -1: case -1:
TRACE(("Fork failed, errno=%d", errno)); TRACE(("Fork failed, errno=%d\n", errno));
INTON; INTON;
error("Cannot fork"); error("Cannot fork");
break; break;