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
7c19d3ae
Commit
7c19d3ae
authored
Dec 08, 2008
by
Dan Nicolaescu
Browse files
(main): Close daemon_pipe on exec.
parent
d31eee5e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/ChangeLog
src/ChangeLog
+4
-0
src/emacs.c
src/emacs.c
+4
-0
No files found.
src/ChangeLog
View file @
7c19d3ae
2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
* emacs.c (main): Close daemon_pipe on exec.
2008-12-08 Chong Yidong <cyd@stupidchicken.com>
* termchar.h (struct tty): New members termcap_term_buffer and
...
...
src/emacs.c
View file @
7c19d3ae
...
...
@@ -1143,6 +1143,10 @@ main (int argc, char **argv)
daemon_name
=
xstrdup
(
dname_arg
);
/* Close unused reading end of the pipe. */
close
(
daemon_pipe
[
0
]);
/* Make sure that the used end of the pipe is closed on exec, so
that it is not accessible to programs started from .emacs. */
fcntl
(
daemon_pipe
[
1
],
F_SETFD
,
FD_CLOEXEC
);
#ifdef HAVE_SETSID
setsid
();
#endif
...
...
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