Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b4c7684c
Commit
b4c7684c
authored
Sep 23, 1997
by
Geoff Voelker
Browse files
(child_setup) [WINDOWSNT]: Change directory of
child instead of parent.
parent
7547360e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/callproc.c
src/callproc.c
+3
-0
No files found.
src/callproc.c
View file @
b4c7684c
...
...
@@ -954,6 +954,7 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
if
(
!
IS_DIRECTORY_SEP
(
temp
[
i
-
1
]))
temp
[
i
++
]
=
DIRECTORY_SEP
;
temp
[
i
]
=
0
;
#ifndef WINDOWSNT
/* We can't signal an Elisp error here; we're in a vfork. Since
the callers check the current directory before forking, this
should only return an error if the directory's permissions
...
...
@@ -961,6 +962,7 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
at least check. */
if
(
chdir
(
temp
)
<
0
)
_exit
(
errno
);
#endif
/* Strip trailing slashes for PWD, but leave "/" and "//" alone. */
while
(
i
>
2
&&
IS_DIRECTORY_SEP
(
temp
[
i
-
1
]))
...
...
@@ -1020,6 +1022,7 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
}
#ifdef WINDOWSNT
prepare_standard_handles
(
in
,
out
,
err
,
handles
);
set_process_dir
(
XSTRING
(
current_dir
)
->
data
);
#else
/* not WINDOWSNT */
/* Make sure that in, out, and err are not actually already in
descriptors zero, one, or two; this could happen if Emacs is
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment