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
c2bd1773
Commit
c2bd1773
authored
Oct 13, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump: Add comments on task seizing and stopping
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
90160f59
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
cr-dump.c
cr-dump.c
+6
-0
util.c
util.c
+7
-0
No files found.
cr-dump.c
View file @
c2bd1773
...
...
@@ -1070,6 +1070,12 @@ int cr_dump_tasks(pid_t pid, struct cr_options *opts)
if
(
collect_pstree
(
pid
))
goto
err
;
/*
* Since ptrace-seize doesn't work on frozen tasks
* we stick with explicit tasks stopping via stop
* signal, but in future it's aimed to switch to
* kernel freezer.
*/
list_for_each_entry
(
item
,
&
pstree_list
,
list
)
{
stop_task
(
item
->
pid
);
if
(
opts
->
leader_only
)
...
...
util.c
View file @
c2bd1773
...
...
@@ -192,6 +192,13 @@ int unseize_task(pid_t pid)
return
ptrace
(
PTRACE_DETACH
,
pid
,
NULL
,
NULL
);
}
/*
* This routine seizes task putting it into a special
* state where we can manipulate the task via ptrace
* inteface, and finally we can detach ptrace out of
* of it so the task would not know if it was saddled
* up with someone else.
*/
int
seize_task
(
pid_t
pid
)
{
siginfo_t
si
;
...
...
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