Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b166dcd8
Commit
b166dcd8
authored
Feb 18, 2011
by
Karl Chen
Committed by
Stefan Monnier
Feb 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lib-src/emacsclient.c (main): Loop while `recv' return EINTR.
parent
e697fcfc
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
118 additions
and
103 deletions
+118
-103
lib-src/ChangeLog
lib-src/ChangeLog
+105
-101
lib-src/emacsclient.c
lib-src/emacsclient.c
+13
-2
No files found.
lib-src/ChangeLog
View file @
b166dcd8
This diff is collapsed.
Click to expand it.
lib-src/emacsclient.c
View file @
b166dcd8
...
...
@@ -1708,10 +1708,21 @@ main (int argc, char **argv)
fsync
(
1
);
/* Now, wait for an answer and print any messages. */
while
(
exit_status
==
EXIT_SUCCESS
&&
(
rl
=
recv
(
emacs_socket
,
string
,
BUFSIZ
,
0
))
>
0
)
while
(
exit_status
==
EXIT_SUCCESS
)
{
char
*
p
;
do
{
errno
=
0
;
rl
=
recv
(
emacs_socket
,
string
,
BUFSIZ
,
0
);
}
/* If we receive a signal (e.g. SIGWINCH, which we pass
through to Emacs), on some OSes we get EINTR and must retry. */
while
(
rl
<
0
&&
errno
==
EINTR
);
if
(
rl
<=
0
)
break
;
string
[
rl
]
=
'\0'
;
p
=
string
+
strlen
(
string
)
-
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