File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
testcases/kernel/syscalls/setsid Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 49
49
char * TCID = "setsid01" ;
50
50
int TST_TOTAL = 1 ;
51
51
52
- #ifdef UCLINUX
53
- static char * argv0 ;
54
- #endif
55
-
56
52
void do_child_1 (void );
57
53
void do_child_2 (void );
58
54
void setup (void );
@@ -68,12 +64,6 @@ int main(int ac, char **av)
68
64
int lc ;
69
65
70
66
tst_parse_opts (ac , av , NULL , NULL );
71
- #ifdef UCLINUX
72
- argv0 = av [0 ];
73
-
74
- maybe_run_child (& do_child_1 , "n" , 1 );
75
- maybe_run_child (& do_child_2 , "n" , 2 );
76
- #endif
77
67
78
68
/*
79
69
* perform global setup for the test
@@ -98,14 +88,7 @@ int main(int ac, char **av)
98
88
99
89
}
100
90
if (pid == 0 ) {
101
- #ifdef UCLINUX
102
- if (self_exec (argv0 , "n" , 1 ) < 0 ) {
103
- tst_resm (TFAIL , "self_exec failed" );
104
-
105
- }
106
- #else
107
91
do_child_1 ();
108
- #endif
109
92
} else {
110
93
if (setpgid (0 , 0 ) < 0 ) {
111
94
tst_resm (TFAIL ,
@@ -165,13 +148,7 @@ void do_child_1(void)
165
148
tst_brkm (TFAIL , NULL , "Fork failed" );
166
149
}
167
150
if (pid == 0 ) {
168
- #ifdef UCLINUX
169
- if (self_exec (argv0 , "n" , 2 ) < 0 ) {
170
- tst_brkm (TFAIL , NULL , "self_exec failed" );
171
- }
172
- #else
173
151
do_child_2 ();
174
- #endif
175
152
} else {
176
153
retval = setpgid (0 , getppid ());
177
154
if (retval < 0 ) {
You can’t perform that action at this time.
0 commit comments