Re: Patch to disarm timers after an exec syscall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux