Small unix improvements

This commit is contained in:
2025-08-11 11:17:22 +02:00
parent 55eecf3177
commit e6414908b7
7 changed files with 44 additions and 16 deletions

View File

@@ -262,6 +262,9 @@ Process SpawnProcess(String command_line, String working_dir, String write_stdin
const int PIPE_WRITE = 1;
bool error = false;
printf("cmd = %.*s\n", FmtString(command_line));
printf("cwd = %.*s\n", FmtString(working_dir));
char *buffer = AllocArray(scratch, char, 4096);
chdir(working_dir.data);
getcwd(buffer, 4096);