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
25e31a93
Commit
25e31a93
authored
Dec 10, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pstree: Remove unneeded arg from prepare_pstree_for_shell_job
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
be79f38d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pstree.c
pstree.c
+4
-4
No files found.
pstree.c
View file @
25e31a93
...
...
@@ -126,7 +126,7 @@ err:
static
int
max_pid
=
0
;
static
int
prepare_pstree_for_shell_job
(
struct
pstree_item
*
root
)
static
int
prepare_pstree_for_shell_job
(
void
)
{
pid_t
current_sid
=
getsid
(
getpid
());
pid_t
current_gid
=
getpgid
(
getpid
());
...
...
@@ -156,8 +156,8 @@ static int prepare_pstree_for_shell_job(struct pstree_item *root)
* Not that clever solution but at least it works.
*/
old_sid
=
root
->
sid
;
old_gid
=
root
->
pgid
;
old_sid
=
root
_item
->
sid
;
old_gid
=
root
_item
->
pgid
;
pr_info
(
"Migrating process tree (GID %d->%d SID %d->%d)
\n
"
,
old_gid
,
current_gid
,
old_sid
,
current_sid
);
...
...
@@ -435,7 +435,7 @@ int prepare_pstree(void)
* Shell job may inherit sid/pgid from the current
* shell, not from image. Set things up for this.
*/
ret
=
prepare_pstree_for_shell_job
(
root_item
);
ret
=
prepare_pstree_for_shell_job
();
if
(
!
ret
)
/*
* Session/Group leaders might be dead. Need to fix
...
...
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