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
f560db78
Commit
f560db78
authored
Jun 20, 1995
by
Richard M. Stallman
Browse files
(rmdir): Fix up Aug 19 1993 change that wasn't done right.
parent
bc69349b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/sysdep.c
src/sysdep.c
+6
-6
No files found.
src/sysdep.c
View file @
f560db78
...
...
@@ -3584,17 +3584,17 @@ rmdir (dpath)
dup2
(
fd
,
1
);
dup2
(
fd
,
2
);
}
wait_for_termination
(
cpid
);
if
(
synch_process_death
!=
0
||
synch_process_retcode
!=
0
)
return
-
1
;
/* /bin/rmdir failed */
execl
(
"/bin/rmdir"
,
"rmdir"
,
dpath
,
(
char
*
)
0
);
_exit
(
-
1
);
/* Can't exec /bin/rmdir */
default:
/* Parent process */
w
hile
(
cpid
!=
wait
(
&
status
));
/* Wait for kid to finish */
w
ait_for_termination
(
cpid
);
}
if
(
WIFSIGNALED
(
status
)
||
WEXITSTATUS
(
status
)
!=
0
)
if
(
synch_process_death
!=
0
||
synch_process_retcode
!=
0
)
{
errno
=
EIO
;
/* We don't know why, but */
return
-
1
;
/* /bin/m
k
dir failed */
return
-
1
;
/* /bin/
r
mdir failed */
}
return
0
;
...
...
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