Re: [PATCH] compatibility syscall layer (let's try again)

From: Jim Houston (jim.houston@ccur.com)
Date: Fri Dec 06 2002 - 15:09:44 EST


Linus Torvalds wrote:

Hi Linus,

Sorry about my last message (which quoted everything but didn't add
anything). I shouldn't try to answer email and talk on the phone at
the same time.

> It's been tested, and the only problem I found (which is kind of
> fundamental) is that if the system call gets interrupted by a signal and
> restarted, and then later returns successfully, the partial restart will
> have updated the "remaining time" field to whatever was remaining when the
> restart was started.
>

George's Posix timers patch sets the time remaining to zero in the
success case. I think this is the right thing to do.

I don't have a copy of the spec in front of me. IIRC, it says that you have
to set the time remaining in the interrupted case. It says nothing
about setting it on the success case. I would leave the lawyers out
of writing software.

I wish the IEEE would make the Posix specs available online for free.
I gave the IEEE money for years...

Jim Houston - Concurrent Computer Corp.
-
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/



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:28 EST