Re: Patch to disarm timers after an exec syscall

From: Gernot Payer
Date: Thu Jun 30 2005 - 03:29:56 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/