Skip to content

Commit

Permalink
Changing working directory before redirecting stdout/err
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSimpson committed Jan 29, 2016
1 parent c844c3c commit 43ce522
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/split.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,6 @@ static void SplitInit() {

GetRankParamsFromFile(rank, &color, work_dir, env_vars);

if (getenv("W_REDIRECT_OUTERR"))
SetStdOutErr(color);

if (getenv("W_IGNORE_SEGV")) {
sighandler_t err_sig;

Expand Down Expand Up @@ -241,6 +238,9 @@ static void SplitInit() {

SetWorkingDirectory(work_dir);

if (getenv("W_REDIRECT_OUTERR"))
SetStdOutErr(color);

SetEnvironmentVaribles(env_vars);

free(work_dir);
Expand Down
2 changes: 1 addition & 1 deletion wraprun_formula.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class WraprunFormula < Formula
homepage "https://github.com/olcf/wraprun"
url "https://github.com/olcf/wraprun/archive/v0.1.11.tar.gz"
url "https://github.com/olcf/wraprun/archive/v0.1.12.tar.gz"

concern for_version("dev") do
included do
Expand Down

0 comments on commit 43ce522

Please sign in to comment.