Open dir, small fixes
This commit is contained in:
@@ -293,11 +293,8 @@ API Process SpawnProcess(String command_line, String working_dir, String write_s
|
||||
const int PIPE_WRITE = 1;
|
||||
bool error = false;
|
||||
|
||||
char *buffer = AllocArray(scratch, char, 4096);
|
||||
working_dir = Copy(scratch, working_dir);
|
||||
chdir(working_dir.data);
|
||||
getcwd(buffer, 4096);
|
||||
defer { chdir(buffer); };
|
||||
|
||||
|
||||
Process process = {};
|
||||
UnixProcess *plat = (UnixProcess *)&process.platform;
|
||||
|
||||
Reference in New Issue
Block a user