aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-12-07 23:02:09 +1000
committerGravatar axel <axel@liljencrantz.se>2005-12-07 23:02:09 +1000
commit479696a8ecd0d375f8886c5488aa954c21e96107 (patch)
treebc944e5b7db01eca9266fcb13e367aaab4731ab6 /parser.c
parentacde745e343813acdba7f704b5d8437a36c105d0 (diff)
Set status to 1 on parse errors
darcs-hash:20051207130209-ac50b-f1431d395bf741bb4c8f99ed64ed8ccc53a960a3.gz
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index f44ee060..ccb0a996 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;