lkml.org 
[lkml]   [2002]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 'select' failure or signal should not update timeout
Alan Cox wrote:
> > <http://www.opengroup.org/onlinepubs/007904975/functions/select.html>
> > says that 'select' may modify its timeout argument only "upon
> > successful completion". However, the Linux kernel sometimes modifies
> > the timeout argument even when 'select' fails or is interrupted.
>
> This is extremely useful behaviour. POSIX is broken here.

I tried to make use of this behavior back in 2.2 days, I think,
and ran into trouble. The time remaining wasn't quite right, I seem
to recall, making this nifty feature less useful. I've since
given up on it.

> Fix it in the C library or somewhere it doesn't harm the clueful

Can you give an example of a clueful package that makes
use of this feature and would be harmed if select() suddenly
became posix-compliant?

- Dan
-
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-03-22 13:22    [W:0.023 / U:4.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site