Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
344ccb36
Commit
344ccb36
authored
Dec 20, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crtools: Make sure pid is specified in command line
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@openvz.org
>
parent
7b1ea147
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
crtools.c
crtools.c
+9
-0
No files found.
crtools.c
View file @
344ccb36
...
...
@@ -248,6 +248,7 @@ int main(int argc, char *argv[])
int
opt
,
idx
;
int
action
=
-
1
;
int
log_inited
=
0
;
bool
has_pid
=
false
;
static
const
char
short_opts
[]
=
"drsf:p:t:hcD:o:"
;
static
const
struct
option
long_opts
[]
=
{
...
...
@@ -273,10 +274,13 @@ int main(int argc, char *argv[])
case
'p'
:
pid
=
atoi
(
optarg
);
opts
.
leader_only
=
true
;
has_pid
=
true
;
break
;
case
't'
:
pid
=
atoi
(
optarg
);
opts
.
leader_only
=
false
;
has_pid
=
true
;
break
;
break
;
case
'd'
:
action
=
opt
;
...
...
@@ -323,6 +327,11 @@ int main(int argc, char *argv[])
return
-
1
;
}
if
(
!
has_pid
)
{
pr_err
(
"No pid specified, -t or -p option missed?
\n
"
);
return
-
1
;
}
switch
(
action
)
{
case
'd'
:
ret
=
cr_dump_tasks
(
pid
,
&
opts
);
...
...
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