forked from Imagelibrary/rtems
2002-10-02 Joel Sherrill <joel@OARcorp.com>
* kern/uipc_socket.c: Make sure that small non-zero delays work. Suggested cleanup from Eric Norum.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2002-10-02 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* kern/uipc_socket.c: Make sure that small non-zero delays work.
|
||||||
|
Suggested cleanup from Eric Norum.
|
||||||
|
|
||||||
2002-10-02 Eric Norum <eric.norum@usask.ca>
|
2002-10-02 Eric Norum <eric.norum@usask.ca>
|
||||||
|
|
||||||
* rtems/mkrootfs.c: As part of PR283, remove redundant code that
|
* rtems/mkrootfs.c: As part of PR283, remove redundant code that
|
||||||
|
|||||||
@@ -960,8 +960,9 @@ sosetopt(so, level, optname, m0)
|
|||||||
error = EDOM;
|
error = EDOM;
|
||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
|
|
||||||
val = tv->tv_sec * hz + tv->tv_usec / tick;
|
val = tv->tv_sec * hz + tv->tv_usec / tick;
|
||||||
if (val == 0)
|
if ((val == 0) && (tv->tv_sec || tv->tv_usec))
|
||||||
val = 1;
|
val = 1;
|
||||||
|
|
||||||
switch (optname) {
|
switch (optname) {
|
||||||
|
|||||||
Reference in New Issue
Block a user