mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-01-30 16:41:44 +00:00
Actually commit main.c with changes announced in last commit.
This commit is contained in:
parent
dddd1be5ec
commit
666ad44568
1 changed files with 4 additions and 3 deletions
7
main.c
7
main.c
|
@ -1794,7 +1794,6 @@ main (int argc, char **argv, char **envp)
|
||||||
if (job_slots > 1)
|
if (job_slots > 1)
|
||||||
{
|
{
|
||||||
char *cp;
|
char *cp;
|
||||||
char c = '+';
|
|
||||||
|
|
||||||
#ifdef WINDOWS32
|
#ifdef WINDOWS32
|
||||||
/* sub_proc.c cannot wait for more than MAXIMUM_WAIT_OBJECTS objects
|
/* sub_proc.c cannot wait for more than MAXIMUM_WAIT_OBJECTS objects
|
||||||
|
@ -1814,6 +1813,8 @@ main (int argc, char **argv, char **envp)
|
||||||
err, map_windows32_error_to_string(err));
|
err, map_windows32_error_to_string(err));
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
char c = '+';
|
||||||
|
|
||||||
if (pipe (job_fds) < 0 || (job_rfd = dup (job_fds[0])) < 0)
|
if (pipe (job_fds) < 0 || (job_rfd = dup (job_fds[0])) < 0)
|
||||||
pfatal_with_name (_("creating jobs pipe"));
|
pfatal_with_name (_("creating jobs pipe"));
|
||||||
#endif
|
#endif
|
||||||
|
@ -3153,8 +3154,6 @@ print_data_base ()
|
||||||
static void
|
static void
|
||||||
clean_jobserver (int status)
|
clean_jobserver (int status)
|
||||||
{
|
{
|
||||||
char token = '+';
|
|
||||||
|
|
||||||
/* Sanity: have we written all our jobserver tokens back? If our
|
/* Sanity: have we written all our jobserver tokens back? If our
|
||||||
exit status is 2 that means some kind of syntax error; we might not
|
exit status is 2 that means some kind of syntax error; we might not
|
||||||
have written all our tokens so do that now. If tokens are left
|
have written all our tokens so do that now. If tokens are left
|
||||||
|
@ -3163,6 +3162,8 @@ clean_jobserver (int status)
|
||||||
#ifdef WINDOWS32
|
#ifdef WINDOWS32
|
||||||
if (has_jobserver_semaphore() && jobserver_tokens)
|
if (has_jobserver_semaphore() && jobserver_tokens)
|
||||||
#else
|
#else
|
||||||
|
char token = '+';
|
||||||
|
|
||||||
if (job_fds[0] != -1 && jobserver_tokens)
|
if (job_fds[0] != -1 && jobserver_tokens)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue