| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
are too long to affect real code
Notes:
svn path=/head/; revision=38938
|
| |
|
|
|
|
|
|
|
|
| |
<dfr@nlsystems.com>
Rewrote sleep() to remove int/long typing assumptions between the argument
to the function and the timespec structure.
Notes:
svn path=/head/; revision=38878
|
| |
|
|
|
|
|
| |
is an int, not a long.
Notes:
svn path=/head/; revision=38847
|
| |
|
|
|
|
|
|
|
| |
Return seconds if errno other than EINTR
Add $Id
Submitted by: bde with minor optimization by me
Notes:
svn path=/head/; revision=30510
|
| |
|
|
|
|
|
| |
uninitialized if nanosleep returns early with agr error
Notes:
svn path=/head/; revision=30493
|
| |
|
|
| |
Notes:
svn path=/head/; revision=30479
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
back to the original single nanosleep() implementation. This is POSIX and
Unix98 (aka single-unix spec v2) compliant behavior. If a program sets
alarm(2) or an interval timer (setitimer(2)) without a SIGALRM handler
being active, sleep(3) will no longer absorb it, and the program will get
what it asked for..... :-]
The original reason for this in the first place (apache) doesn't seem to
need it anymore, according to Andrey.
Reviewed by: ache, bde
Notes:
svn path=/head/; revision=30442
|
| |
|
|
|
|
|
| |
Handle syscalls error return slightly better
Notes:
svn path=/head/; revision=28172
|
| |
|
|
| |
Notes:
svn path=/head/; revision=28128
|
| |
|
|
| |
Notes:
svn path=/head/; revision=28127
|
| |
|
|
|
|
|
|
|
|
| |
and return to previous Peter's variant.
POSIX says that this place is implementation defined and old variant allows
application block SIGALRM and sleep and not be killed by external SIGALRMs.
BTW, GNU sleep f.e. sleeps forever in blocked SIGALRM :-)
Notes:
svn path=/head/; revision=28125
|
| |
|
|
| |
Notes:
svn path=/head/; revision=28107
|
| |
|
|
|
|
|
|
|
|
|
|
| |
acceptable range for tv_sec to the magic number 100000000 (which at
least ought to be declared in a header file, and explained in the
non-existing man page, as well as in the existing man pages for
nanosleep(2) & Co.).
PR: bin/4259
Notes:
svn path=/head/; revision=28033
|
| |
|
|
|
|
|
|
|
|
|
| |
lifetime of the call, just like the old implementation did. Previously,
we were only eating them if the application did not call sleep()/usleep()
with SIGALRM masked.
Submitted by: ache
Notes:
svn path=/head/; revision=27502
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
semantics of the old sleep for compatability with a few decades of expected
side effects. Apache breaks if we just use nanosleep() for some reason,
here we use a new signanosleep() syscall which is kinda like a hybrid of
sigsuspend and nanosleep..
Reviewed by: ache (and tested on his apache that was failing when
sleep used plain nanosleep)
Notes:
svn path=/head/; revision=26385
|
| |
|
|
|
|
|
|
|
|
| |
-DUSE_NANOSLEEP. Also, seperate the code for _THREAD_SAFE so that it uses
the simpler threaded nanosleep() call in libc_r.. We don't go to the same
extremes for emulating traditional sleep semantics (ie: eating any SIGALRM
that might happen) which things like apache seem to depend on.
Notes:
svn path=/head/; revision=26338
|
| |
|
|
|
|
|
|
| |
This appears to appease Apache, although depending on having sleep(3)
changing the SIGALRM handler is a bit bogus.
Notes:
svn path=/head/; revision=25890
|
| |
|
|
| |
Notes:
svn path=/head/; revision=25870
|
| |
|
|
|
|
|
|
| |
the backend of sleep(3) and usleep(3). It's off by default until the
problem is fixed.
Notes:
svn path=/head/; revision=25862
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(nanosleep) breaks Apache httpd badly: his childs died quickly after
number of requests (SIGPIPE). To reproduce this bug start
gdb /usr/local/sbin/httpd
run -X
and make some bunch of concurent requests (load the server pages
from 3 different places f.e.)
After short time httpd dies via SIGPIPE. It never dies with old sleep.c
In real life it looks like lots of broken images on the pages or missing
pages. Lynx says about Network read error, etc.
It seems something wrong in nanosleep signal handling.
Notes:
svn path=/head/; revision=25861
|
| |
|
|
|
|
|
| |
version.
Notes:
svn path=/head/; revision=25739
|
| |
|
|
|
|
|
| |
ts_nsec -> tv_nsec
Notes:
svn path=/head/; revision=18414
|
| |
|
|
|
|
|
|
|
| |
Submitted by: John Birrel(L?)
changes for threadsafe operations
Notes:
svn path=/head/; revision=13545
|
| |
|
|
| |
Notes:
svn path=/head/; revision=11659
|
|
|
Notes:
svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573
|