Convert jobs list to std::list

This commit is contained in:
ridiculousfish
2012-01-29 16:36:21 -08:00
parent 1a5d866a91
commit f243cd86c9
6 changed files with 123 additions and 97 deletions

View File

@@ -2519,7 +2519,7 @@ static void reader_super_highlight_me_plenty( int match_highlight_pos, array_lis
int exit_status()
{
if( is_interactive )
return first_job == 0 && data->end_loop;
return job_list().empty() && data->end_loop;
else
return end_loop;
}
@@ -2549,7 +2549,8 @@ static void handle_end_loop()
}
}
for( j=first_job; j; j=j->next )
job_iterator_t jobs;
while ((j = jobs.next()))
{
if( !job_is_completed(j) )
{
@@ -2574,7 +2575,8 @@ static void handle_end_loop()
in interactive mode. If isatty returns false, it
means stdin must have been closed.
*/
for( j = first_job; j; j=j->next )
job_iterator_t jobs;
while ((j = jobs.next()))
{
if( ! job_is_completed( j ) )
{