login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
20
Re: [PATCH] wait_task_stopped: pass correct exit_code to wait_noreap_copyout
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH] wait_task_stopped: pass correct exit_code to wait_noreap_copyout
Date: Tuesday, November 20, 2007 - 1:16 am
On Tue, 20 Nov 2007 07:55:22 +0000 Scott James Remnant <scott@ubuntu.com> wrote:
quoted text
> On Mon, 2007-11-19 at 22:43 -0800, Andrew Morton wrote: > > On Sun, 18 Nov 2007 09:13:24 +0000 Scott James Remnant <scott@ubuntu.com> wrote: > > > > > In wait_task_stopped() exit_code already contains the right value for > > > the si_status member of siginfo, and this is simply set in the non > > > WNOWAIT case. > > > > > > Pass it unchanged to wait_noreap_copyout(); we would only need to > > > shift it and add 0x7f if we were returning it in the user status field > > > and that isn't used for any function that permits WNOWAIT. > > > > > Is this bug visible to userspace? If so, I'm surprised that none of the > > various testsuites (which like to exercise this sort of interface) has > > detected it. > > > Absolutely; if you call waitid() with a stopped or traced process, > you'll get the signal in siginfo.si_status as expected -- however if you > call waitid(WNOWAIT) at the same time, you'll get the signal << 8 | 0x7f >
hm, OK. Well I guess I'll stick a for-2.6.23 tag on this as well as queueing it for 2.6.24. -
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] wait_task_stopped: pass correct exit_code to wait_ ...
, Scott James Remnant
, (Sun Nov 18, 2:13 am)
Re: [PATCH] wait_task_stopped: pass correct exit_code to w ...
, Andrew Morton
, (Mon Nov 19, 11:43 pm)
Re: [PATCH] wait_task_stopped: pass correct exit_code to w ...
, Scott James Remnant
, (Tue Nov 20, 12:55 am)
Re: [PATCH] wait_task_stopped: pass correct exit_code to w ...
, Andrew Morton
, (Tue Nov 20, 1:16 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jesse Barnes
Re: [stable] [BUG][PATCH] cpqphp: fix kernel NULL pointer dereference
Greg KH
[003/136] p54usb: add Zcomax XG-705A usbid
Magnus Damm
[PATCH 03/07] ARM: Use shared GIC entry macros on Realview
Oliver Neukum
Re: [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30
Martin Schwidefsky
Re: [PATCH] optimized ktime_get[_ts] for GENERIC_TIME=y
git
:
Junio C Hamano
Re: Some advanced index playing
Jeff King
Re: confusion over the new branch and merge config
Robin Rosenberg
Re: cvs2svn conversion directly to git ready for experimentation
Linus Torvalds
git binary size...
Ævar Arnfjörð Bjarmason
Re: Challenge with Git-Bash
git-commits-head
:
Linux