Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
e06f4639
Commit
e06f4639
authored
Aug 20, 2001
by
Leigh B. Stoller
Browse files
Let user know when socket connect fails and tty mode is being
attempted. Good for debugging.
parent
c227befc
Changes
1
Hide whitespace changes
Inline
Side-by-side
tip/hunt.c
View file @
e06f4639
...
...
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)hunt.c 8.1 (Berkeley) 6/6/93";
#endif
static
const
char
rcsid
[]
=
"$Id: hunt.c,v 1.
8
2001-08-
16 23:49:40
stoller Exp $"
;
"$Id: hunt.c,v 1.
9
2001-08-
20 15:26:06
stoller Exp $"
;
#endif
/* not lint */
#ifdef USESOCKETS
...
...
@@ -218,6 +218,8 @@ socket_open(char *tipname)
/* Caller picks up and displays error */
if
(
connect
(
sock
,
(
struct
sockaddr
*
)
&
name
,
sizeof
(
name
))
<
0
)
{
close
(
sock
);
fprintf
(
stderr
,
"Socket connect failed. Falling back to tty line.
\n
"
);
return
-
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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