Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
bake
Commits
8466b850
Commit
8466b850
authored
Apr 18, 2016
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svr argument to bb-shutdown
parent
6eeade93
Pipeline
#154
skipped
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
src/bb-shutdown.c
src/bb-shutdown.c
+14
-5
No files found.
src/bb-shutdown.c
View file @
8466b850
...
...
@@ -28,10 +28,20 @@ int main(int argc, char **argv)
hg_addr_t
svr_addr
=
HG_ADDR_NULL
;
hg_handle_t
handle
;
if
(
argc
!=
2
)
{
fprintf
(
stderr
,
"Usage: bb-shutdown <server addr to stop>
\n
"
);
fprintf
(
stderr
,
" Example: ./bb-shutdown tcp://localhost:1234
\n
"
);
return
(
-
1
);
}
/* boilerplate HG initialization steps */
/***************************************/
/* TODO: fix addr */
hg_class
=
HG_Init
(
"tcp://localhost:1234"
,
HG_FALSE
);
/* NOTE: the listening address is not actually used in this case (the
* na_listen flag is false); but we pass in the *target* server address
* here to make sure that Mercury starts up the correct transport
*/
hg_class
=
HG_Init
(
argv
[
1
],
HG_FALSE
);
if
(
!
hg_class
)
{
fprintf
(
stderr
,
"Error: HG_Init()
\n
"
);
...
...
@@ -91,8 +101,7 @@ int main(int argc, char **argv)
/* send one rpc to server to shut it down */
/* find addr for server */
/* TODO: fix addr */
ret
=
margo_addr_lookup
(
mid
,
hg_context
,
"tcp://localhost:1234"
,
&
svr_addr
);
ret
=
margo_addr_lookup
(
mid
,
hg_context
,
argv
[
1
],
&
svr_addr
);
assert
(
ret
==
0
);
/* create handle */
...
...
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