mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-06 22:45:27 +00:00
Formerly job.c.~74~
This commit is contained in:
parent
db8eb71a9c
commit
5c2f4a7d88
1 changed files with 4 additions and 6 deletions
10
job.c
10
job.c
|
@ -127,7 +127,7 @@ void init_siglist ();
|
||||||
extern char *sys_siglist[];
|
extern char *sys_siglist[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int child_handler ();
|
RETSIGTYPE child_handler ();
|
||||||
static void free_child (), start_job ();
|
static void free_child (), start_job ();
|
||||||
static int load_too_high ();
|
static int load_too_high ();
|
||||||
|
|
||||||
|
@ -184,8 +184,6 @@ child_handler (sig)
|
||||||
|
|
||||||
if (debug_flag)
|
if (debug_flag)
|
||||||
printf ("Got a SIGCHLD; %d unreaped children.\n", dead_children);
|
printf ("Got a SIGCHLD; %d unreaped children.\n", dead_children);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int shell_function_pid, shell_function_completed;
|
extern int shell_function_pid, shell_function_completed;
|
||||||
|
@ -649,7 +647,7 @@ start_waiting_job (c)
|
||||||
start_job (c);
|
start_job (c);
|
||||||
switch (c->file->command_state)
|
switch (c->file->command_state)
|
||||||
{
|
{
|
||||||
case cs_not_running:
|
case cs_not_started:
|
||||||
/* The child is waiting to run.
|
/* The child is waiting to run.
|
||||||
It has already been put on the `waiting_jobs' chain. */
|
It has already been put on the `waiting_jobs' chain. */
|
||||||
break;
|
break;
|
||||||
|
@ -668,12 +666,12 @@ start_waiting_job (c)
|
||||||
|
|
||||||
case cs_finished:
|
case cs_finished:
|
||||||
free_child (c);
|
free_child (c);
|
||||||
notice_finished_file (file);
|
notice_finished_file (c->file);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
error ("internal error: `%s' command_state == %d in new_job",
|
error ("internal error: `%s' command_state == %d in new_job",
|
||||||
file->name, (int) file->command_state);
|
c->file->name, (int) c->file->command_state);
|
||||||
abort ();
|
abort ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue