lkml.org 
[lkml]   [2005]   [Jun]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromGernot Payer <>
SubjectRe: Patch to disarm timers after an exec syscall
DateThu, 30 Jun 2005 10:27:57 +0200
On Wednesday 29 June 2005 20:27, Chris Wright wrote:
> No, this can't do.  It conflicts with the other bit of requirements.
> Specifically:
> http://www.opengroup.org/onlinepubs/009695399/functions/exec.html
>
> As you mention:
>
>   [TMR] Per-process timers created by the calling process
>   shall be deleted before replacing the current process image with the new
>   process image.
>
> But also:
>
>   The new process shall inherit at least the following attributes from the
>   calling process image:
>   <snip>
>   o [XSI] Interval timers
>
> And this kills the latter.

Ah, thanks for pointing that out. Unfortunately this fact isn't made clear in 
the timer_create page and the exec page isn't very understandable for 
non-native speakers and non-lawyers. ;-)

But after reading the parts you mentioned (expecially the [XSI] and [TMR] 
acronyms), I have to agree with you, the patch is wrong and so is the test 
case I mentioned.

However, poking around in the kernel was fun anyway. ;-)

> thanks,
> -chris

mfg
Gernot
-
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/

\
 
 \ /
  Last update: 2005-06-30 08:32    [from the cache]
©2003-2008