Skip to content

Commit 4aa84ce

Browse files
committed
---
yaml --- r: 14112 b: refs/heads/try c: 9b01620 h: refs/heads/master v: v3
1 parent 1041880 commit 4aa84ce

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
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 6cf40bd0c4ed735a4280b13a699d9d80fa918830
5+
refs/heads/try: 9b01620e8d427275217f413c770c79d2d70fac6c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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)