Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
cb69ca10
Commit
cb69ca10
authored
Jun 19, 2002
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revise last revision; allow -t (timeout) option to in normal and UDP
mode.
parent
f727cc8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
tmcd/tmcc.c
tmcd/tmcc.c
+7
-6
No files found.
tmcd/tmcc.c
View file @
cb69ca10
...
...
@@ -43,7 +43,7 @@ char *usagestr =
" -v versnum Specify a version number for tmcd
\n
"
" -n vnodeid Specify the vnodeid
\n
"
" -u Use UDP instead of TCP
\n
"
" -t timeout Timeout waiting for
a reply from master (UDP ONLY)
.
\n
"
" -t timeout Timeout waiting for
the controller
.
\n
"
"
\n
"
;
void
...
...
@@ -65,8 +65,8 @@ main(int argc, char **argv)
char
*
bossnode
=
DEFAULT_BOSSNODE
;
int
version
=
CURRENT_VERSION
;
char
*
vnodeid
=
NULL
;
#ifdef UDP
int
waitfor
=
0
;
#ifdef UDP
int
useudp
=
0
;
#endif
...
...
@@ -86,10 +86,10 @@ main(int argc, char **argv)
case
'v'
:
version
=
atoi
(
optarg
);
break
;
#ifdef UDP
case
't'
:
waitfor
=
atoi
(
optarg
);
break
;
#ifdef UDP
case
'u'
:
useudp
=
1
;
break
;
...
...
@@ -134,6 +134,10 @@ main(int argc, char **argv)
exit
(
1
);
}
if
(
waitfor
)
{
alarm
(
waitfor
);
}
/*
* Handle built-in "bossinfo" command
*/
...
...
@@ -346,9 +350,6 @@ doudp(int argc, char **argv,
exit
(
1
);
}
if
(
waitfor
)
{
alarm
(
waitfor
);
}
cc
=
recvfrom
(
sock
,
buf
,
sizeof
(
buf
),
0
,
(
struct
sockaddr
*
)
&
client
,
&
length
);
...
...
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