Minor problem in utrace patch

Wenji Huang wenji.huang at oracle.com
Tue Dec 4 05:36:40 UTC 2007


Hi,
  I got the latest utrace 2.6.24 patch from website.
  When I applied it to 2.6.24-rc3 kernel, got some report. Most of them 
are about whitespace.

  But one of them made compilation failed.   kernel/exit.c

@@ -1382,12 +1305,11 @@ static int wait_task_stopped(struct task
 
 	if (unlikely(noreap)) {
 		uid_t uid = p->uid;
-		int why = (p->ptrace & PT_PTRACED) ? CLD_TRAPPED : CLD_STOPPED;
 
 		exit_code = p->exit_code;
 		if (unlikely(!exit_code) || unlikely(p->exit_state))
 			goto bail_ref;
-		return wait_noreap_copyout(p, pid, uid,
+		return wait_noreap_copyout(p, pid, uid CLD_STOPPED,
 					   why, exit_code,
 					   infop, ru);
The local variable why is removed. So maybe 

 			goto bail_ref;
		 return wait_noreap_copyout(p, pid, uid,
+ 					   CLD_STOPPED, exit_code,

The following is the applying log.

Regards,
Wenji


-------------- next part --------------
A non-text attachment was scrubbed...
Name: utrace-patch.log
Type: text/x-log
Size: 762 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/utrace-devel/attachments/20071204/a1a551fc/attachment.bin>


More information about the utrace-devel mailing list