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:
Joel Sherrill
2002-10-02 17:35:29 +00:00
parent bcac0cb2c3
commit 6ca248c37c
2 changed files with 7 additions and 1 deletions

View File

@@ -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>
* rtems/mkrootfs.c: As part of PR283, remove redundant code that

View File

@@ -960,8 +960,9 @@ sosetopt(so, level, optname, m0)
error = EDOM;
goto bad;
}
val = tv->tv_sec * hz + tv->tv_usec / tick;
if (val == 0)
if ((val == 0) && (tv->tv_sec || tv->tv_usec))
val = 1;
switch (optname) {