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
dd73699b
Commit
dd73699b
authored
Feb 01, 2012
by
Andrey Vagin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdtm: set SA_RESTART everywhere
parent
0981f361
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
test.c
test/zdtm/lib/test.c
+5
-2
No files found.
test/zdtm/lib/test.c
View file @
dd73699b
...
...
@@ -167,7 +167,10 @@ struct zdtm_clone_arg {
static
int
do_test_fn
(
void
*
_arg
)
{
struct
zdtm_clone_arg
*
ca
=
_arg
;
struct
sigaction
sa
;
struct
sigaction
sa
=
{
.
sa_handler
=
SIG_DFL
,
.
sa_flags
=
SA_RESTART
,
};
/* record the test pid to remember the ownership of the pidfile */
master_pid
=
getpid
();
...
...
@@ -175,7 +178,6 @@ static int do_test_fn(void *_arg)
fclose
(
ca
->
pidf
);
sigemptyset
(
&
sa
.
sa_mask
);
sa
.
sa_handler
=
SIG_DFL
;
if
(
sigaction
(
SIGCHLD
,
&
sa
,
NULL
))
{
err
(
"Can't reset SIGCHLD handler: %m
\n
"
);
exit
(
1
);
...
...
@@ -200,6 +202,7 @@ void test_init_ns(int argc, char **argv, unsigned long clone_flags, void (*fn)(v
static
FILE
*
pidf
;
struct
sigaction
sa
=
{
.
sa_handler
=
sig_hand
,
.
sa_flags
=
SA_RESTART
,
};
struct
zdtm_clone_arg
ca
;
void
*
stack
;
...
...
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