Skip to content

Commit a50c047

Browse files
committed
---
yaml --- r: 8126 b: refs/heads/snap-stage3 c: 9b01620 h: refs/heads/master v: v3
1 parent 14f779c commit a50c047

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 6cf40bd0c4ed735a4280b13a699d9d80fa918830
4+
refs/heads/snap-stage3: 9b01620e8d427275217f413c770c79d2d70fac6c
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/rt/rust_run_program.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ rust_run_program(const char* argv[],
153153
if (err_fd) dup2(err_fd, 2);
154154
/* Close all other fds. */
155155
for (int fd = getdtablesize() - 1; fd >= 3; fd--) close(fd);
156-
if (dir) { chdir(dir); }
156+
if (dir) {
157+
int result = chdir(dir);
158+
// FIXME: need error handling
159+
assert(!result && "chdir failed");
160+
}
157161

158162
#ifdef __APPLE__
159163
if (envp) {

0 commit comments

Comments
 (0)