Skip to content

Commit

Permalink
Fix up a bad locking pattern. Bump buffer size.
Browse files Browse the repository at this point in the history
  • Loading branch information
deplinenoise committed Feb 24, 2018
1 parent ddf790f commit 5417935
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ExecUnix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ ExecuteProcess(
close(stdout_pipe[pipe_read]);
close(stderr_pipe[pipe_read]);

TerminalIoJobExit(job_id);

if (WIFSIGNALED(return_code))
{
result.m_ReturnCode = 1;
Expand All @@ -260,6 +258,8 @@ ExecuteProcess(
}
}

TerminalIoJobExit(job_id);

return result;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/TerminalIo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ void TerminalIoJobExit(int job_id)

void TerminalIoPrintf(int job_id, int sort_key, const char *format, ...)
{
char buffer[2048];
char buffer[16384];
va_list a;
va_start(a, format);
vsnprintf(buffer, sizeof(buffer), format, a);
Expand Down

0 comments on commit 5417935

Please sign in to comment.