login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
21
Re: [PATCH 10/16] ptrace: clean transitions between TASK_STOPPED and TRACED
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Tejun Heo
Subject:
Re: [PATCH 10/16] ptrace: clean transitions between TASK_STOPPED and TRACED
Date: Tuesday, December 21, 2010 - 10:32 am
On Tue, Dec 21, 2010 at 06:31:55PM +0100, Tejun Heo wrote:
quoted text
> > > @@ -1842,7 +1879,18 @@ static int do_signal_stop(int signr) > > > > > > spin_lock_irq(¤t->sighand->siglock); > > > } else > > > - ptrace_stop(current->exit_code, CLD_STOPPED, 0, NULL); > > > + ptrace_stop(current->group_stop & GROUP_STOP_SIGMASK, > > > + CLD_STOPPED, 0, NULL); > > > > Perhaps it would be more clean to clear ->exit_code here, in the > > "else" branch. > > Hmmm... and dropping current->exit_code clearing from the > do_signal_stop(), right? I'm a bit confused about the use of > current->exit_code tho. Why aren't we clearing it from ptrace_stop()?
Ah, never mind. It's used as the signr return from ptrace signal trap. Thanks. -- tejun --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 10/16] ptrace: clean transitions between TASK_STOPP ...
, Tejun Heo
, (Mon Dec 6, 9:56 am)
Re: [PATCH 10/16] ptrace: clean transitions between TASK_S ...
, Oleg Nesterov
, (Mon Dec 20, 8:00 am)
Re: [PATCH 10/16] ptrace: clean transitions between TASK_S ...
, Tejun Heo
, (Tue Dec 21, 10:31 am)
Re: [PATCH 10/16] ptrace: clean transitions between TASK_S ...
, Tejun Heo
, (Tue Dec 21, 10:32 am)
Re: [PATCH 10/16] ptrace: clean transitions between TASK_S ...
, Tejun Heo
, (Wed Dec 22, 3:54 am)
Re: [PATCH 10/16] ptrace: clean transitions between TASK_S ...
, Oleg Nesterov
, (Wed Dec 22, 4:39 am)
Re: [PATCH 10/16] ptrace: clean transitions between TASK_S ...
, Tejun Heo
, (Wed Dec 22, 8:14 am)
Re: [PATCH 10/16] ptrace: clean transitions between TASK_S ...
, Oleg Nesterov
, (Wed Dec 22, 9:00 am)
Re: [PATCH 10/16] ptrace: clean transitions between TASK_S ...
, Tejun Heo
, (Wed Dec 22, 9:21 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH