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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
875e6b94
Commit
875e6b94
authored
Apr 28, 1995
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(create_process): Don't reference pty_name if !HAVE_PTYS.
parent
5b3f1224
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
src/process.c
src/process.c
+14
-5
No files found.
src/process.c
View file @
875e6b94
...
...
@@ -248,12 +248,11 @@ static Lisp_Object get_process ();
/* Maximum number of bytes to send to a pty without an eof. */
static
int
pty_max_bytes
;
/* Open an available pty, returning a file descriptor.
Return -1 on failure.
The file name of the terminal corresponding to the pty
is left in the variable pty_name. */
#ifdef HAVE_PTYS
/* The file name of the pty opened by allocate_pty. */
static
char
pty_name
[
24
];
#endif
/* Compute the Lisp form of the process status, p->status, from
the numeric status that was returned by `wait'. */
...
...
@@ -363,6 +362,11 @@ status_message (status)
#ifdef HAVE_PTYS
/* Open an available pty, returning a file descriptor.
Return -1 on failure.
The file name of the terminal corresponding to the pty
is left in the variable pty_name. */
int
allocate_pty
()
{
...
...
@@ -1499,7 +1503,12 @@ create_process (process, new_argv, current_dir)
if
(
forkin
!=
forkout
&&
forkout
>=
0
)
close
(
forkout
);
XPROCESS
(
process
)
->
tty_name
=
pty_flag
?
build_string
(
pty_name
)
:
Qnil
;
#ifdef HAVE_PTYS
if
(
pty_flag
)
XPROCESS
(
process
)
->
tty_name
=
build_string
(
pty_name
);
else
#endif
XPROCESS
(
process
)
->
tty_name
=
Qnil
;
#ifdef SIGCHLD
#ifdef BSD4_1
...
...
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