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
db4042c8
Commit
db4042c8
authored
Sep 20, 1996
by
Richard M. Stallman
Browse files
(init_system_name): Retry gethostbyname only 5 times
and don't sleep after the last time.
parent
92c51e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/sysdep.c
src/sysdep.c
+3
-1
No files found.
src/sysdep.c
View file @
db4042c8
...
...
@@ -2198,7 +2198,7 @@ init_system_name ()
{
struct
hostent
*
hp
;
int
count
;
for
(
count
=
0
;
count
<
10
;
count
++
)
for
(
count
=
0
;;
count
++
)
{
#ifdef TRY_AGAIN
h_errno
=
0
;
...
...
@@ -2208,6 +2208,8 @@ init_system_name ()
if
(
!
(
hp
==
0
&&
h_errno
==
TRY_AGAIN
))
#endif
break
;
if
(
count
>=
5
)
break
;
Fsleep_for
(
make_number
(
1
),
Qnil
);
}
if
(
hp
)
...
...
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