Trivial fixes
* process.c (internal_fork): Remove conditionals which make no difference (we return 0 on both branches of these ifs). * util.c: Fix indentation of an ifdef. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
081e72f41a
commit
e7c9024acf
@ -917,8 +917,7 @@ internal_fork(struct tcb *tcp)
|
||||
(tcp->u_arg[ARG_FLAGS] & CLONE_UNTRACED))
|
||||
return 0;
|
||||
fork_tcb(tcp);
|
||||
if (setbpt(tcp) < 0)
|
||||
return 0;
|
||||
setbpt(tcp);
|
||||
} else {
|
||||
int pid;
|
||||
int bpt;
|
||||
@ -961,8 +960,7 @@ internal_fork(struct tcb *tcp)
|
||||
if (!followfork || dont_follow)
|
||||
return 0;
|
||||
fork_tcb(tcp);
|
||||
if (setbpt(tcp) < 0)
|
||||
return 0;
|
||||
setbpt(tcp);
|
||||
}
|
||||
else {
|
||||
int bpt = tcp->flags & TCB_BPTSET;
|
||||
|
Loading…
x
Reference in New Issue
Block a user