[PATCH] process.c (internal_exit) [IA64]: Remove redundant check

Dmitry V. Levin ldv at altlinux.org
Sat Feb 19 00:27:39 UTC 2011


The (known_scno(tcp) == __NR_exit_group) check introduced along with
native_scno makes that specific IA64 test redundant.

--- a/process.c
+++ b/process.c
@@ -443,18 +443,11 @@ struct tcb *tcp;
 }
 
 int
-internal_exit(tcp)
-struct tcb *tcp;
+internal_exit(struct tcb *tcp)
 {
 	if (entering(tcp)) {
 		tcp->flags |= TCB_EXITING;
 #ifdef __NR_exit_group
-# ifdef IA64
-		if (ia32) {
-			if (tcp->scno == 252)
-				tcp->flags |= TCB_GROUP_EXITING;
-		} else
-# endif
 		if (known_scno(tcp) == __NR_exit_group)
 			tcp->flags |= TCB_GROUP_EXITING;
 #endif


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110219/3390493f/attachment.bin>


More information about the Strace-devel mailing list