From 479696a8ecd0d375f8886c5488aa954c21e96107 Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 7 Dec 2005 23:02:09 +1000 Subject: [PATCH] Set status to 1 on parse errors darcs-hash:20051207130209-ac50b-f1431d395bf741bb4c8f99ed64ed8ccc53a960a3.gz --- parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parser.c b/parser.c index f44ee0601..ccb0a9968 100644 --- a/parser.c +++ b/parser.c @@ -1883,9 +1883,11 @@ static void eval_job( tokenizer *tok ) else { /* - This job could not be properly parsed. We free it instead. + This job could not be properly parsed. We free it instead, and set the status to 1. */ job_free( j ); + + proc_set_last_status( 1 ); } current_block->job = 0; break;