* main.c (decode_output_sync_flags): Use NONE for NO_OUTPUT_SYNC.
int save_fdout = -1;
int save_fderr = -1;
-#ifndef NO_OUTPUT_SYNC
- /* Divert child output if output_sync in use. */
+ /* Divert child output if we want to capture output. */
if (out && out->syncout)
{
if (out->out >= 0)
if (out->err >= 0)
fderr = out->err;
}
-#endif
/* For each FD which needs to be redirected first make a dup of the standard
FD to save and mark it close on exec so our child won't see it. Then
int fdout = FD_STDOUT;
int fderr = FD_STDERR;
-#ifndef NO_OUTPUT_SYNC
- /* Divert child output if output_sync in use. */
+ /* Divert child output if we want to capture it. */
if (out && out->syncout)
{
if (out->out >= 0)
if (out->err >= 0)
fderr = out->err;
}
-#endif
pid = vfork();
if (pid != 0)
static void
decode_output_sync_flags (void)
{
+#ifdef NO_OUTPUT_SYNC
+ output_sync = OUTPUT_SYNC_NONE;
+#else
if (output_sync_option)
{
if (streq (output_sync_option, "none"))
if (sync_mutex)
RECORD_SYNC_MUTEX (sync_mutex);
+#endif
}
#ifdef WINDOWS32
/* If we failed to create a temp file, disable output sync going forward. */
error:
output_close (out);
- output_sync = 0;
+ output_sync = OUTPUT_SYNC_NONE;
}
/* Synchronize the output of jobs in -j mode to keep the results of