Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
justanhduc committed Oct 29, 2020
1 parent 6626045 commit 50c1615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jobs.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ int s_newjob(int s, struct msg *m)
if (!parent)
error("jobid %i suddenly disappeared from the finished list",
ljobid);
p->dependency_errorlevel = 0;
p->dependency_errorlevel = parent->result.errorlevel;
}
else
p->dependency_errorlevel = last_errorlevel;
Expand Down Expand Up @@ -922,15 +922,15 @@ void notify_errorlevel(struct Job *p)
{
int i;

last_errorlevel = p->result.errorlevel;
last_errorlevel = 0;

for(i = 0; i < p->notify_errorlevel_to_size; ++i)
{
struct Job *notified;
notified = get_job(p->notify_errorlevel_to[i]);
if (notified)
{
notified->dependency_errorlevel = p->result.errorlevel;
notified->dependency_errorlevel = 0;
}
}
}
Expand Down

0 comments on commit 50c1615

Please sign in to comment.