From f60ee4f2befa51a63b4321bb2f624c487a3abcdb Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 19 Apr 2007 12:07:46 +0000 Subject: [PATCH] if internal error, tell what failed --- jobs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jobs.c b/jobs.c index bb2663e..53dc12f 100644 --- a/jobs.c +++ b/jobs.c @@ -2,7 +2,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.20 2007/03/10 18:16:27 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.21 2007/04/19 12:07:46 tg Exp $"); /* Order important! */ #define PRUNNING 0 @@ -428,6 +428,10 @@ exchild(struct op *t, int flags, cleartraps(); execute(t, (flags & XERROK) | XEXEC); /* no return */ internal_errorf(0, "exchild: execute() returned"); +#ifndef MKSH_SMALL + fptreef(shl_out, 2, "exchild: tried to execute {\n%T\n}\n", t); + shf_flush(shl_out); +#endif unwind(LLEAVE); /* NOTREACHED */ }