Date | Commit message (Collapse) |
|
When a Tempfile object is garbage collected, or when the Ruby interpreter
exits, its associated temporary file is automatically deleted. This may
lead to race condition when Tempfile is used like in these tests.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
[ew: this avoids a TOCTOU issue for multiple test invocations]
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
Note: this is an incomplete fix and the race can still happen.
A proper fix would involve using a temporary directory for each
test and placing the Unix socket in there.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
|
|
All IO objects created by Kgio will have FD_CLOEXEC descriptor
flag set on it when run under Ruby 2.0.0dev. This matches the
upcoming behavior of Ruby 2.0.0dev for IO objects in the core
and standard library. This change does not affect users on Ruby
1.9.3 and earlier.
accept()-ed sockets in kgio have _always_ had FD_CLOEXEC
set by default.
|
|
This removes the global Kgio.wait_*able accesors and requires
each class to define (or fall back to) the Kgio::DefaultWaiters
methods.
|
|
These initiate (but do not wait for) non-blocking connects.
|
|
everything shou^Wmight be working...
|