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
a0932daa
Commit
a0932daa
authored
Feb 26, 1994
by
Karl Heuer
Browse files
(sys_subshell): New function, split from sys_suspend.
parent
8026024c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
src/sysdep.c
src/sysdep.c
+17
-8
No files found.
src/sysdep.c
View file @
a0932daa
...
...
@@ -568,10 +568,6 @@ struct save_signal
sys_suspend
()
{
#ifdef MSDOS
/* Demacs 1.1.2 91/10/20 Manabu Higashida */
int
st
;
char
oldwd
[
MAXPATHLEN
+
1
];
/* Fixed length is safe on MSDOS. */
#endif
#ifdef VMS
/* "Foster" parentage allows emacs to return to a subprocess that attached
to the current emacs as a cheaper than starting a whole new process. This
...
...
@@ -630,6 +626,22 @@ sys_suspend ()
/* On a system where suspending is not implemented,
instead fork a subshell and let it talk directly to the terminal
while we wait. */
sys_subshell
();
#endif
/* no USG_JOBCTRL */
#endif
/* no SIGTSTP */
#endif
/* not VMS */
}
/* Fork a subshell. */
sys_subshell
()
{
#ifndef VMS
#ifdef MSDOS
/* Demacs 1.1.2 91/10/20 Manabu Higashida */
int
st
;
char
oldwd
[
MAXPATHLEN
+
1
];
/* Fixed length is safe on MSDOS. */
#endif
int
pid
=
fork
();
struct
save_signal
saved_handlers
[
5
];
...
...
@@ -710,10 +722,7 @@ sys_suspend ()
synch_process_alive
=
1
;
wait_for_termination
(
pid
);
restore_signal_handlers
(
saved_handlers
);
#endif
/* no USG_JOBCTRL */
#endif
/* no SIGTSTP */
#endif
/* not VMS */
#endif
/* !VMS */
}
save_signal_handlers
(
saved_handlers
)
...
...
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