diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-02-10 19:56:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-02-10 19:56:39 +0000 |
commit | 2b138012a7af900b5034da50ba87a3fa106ebb7b (patch) | |
tree | 9d4f87a38231f03179cfaad343efa29241b43799 | |
parent | d681bc2a34284591a3d2b70ea465ec8d61440fe1 (diff) |
Modified to delay at startup.
-rw-r--r-- | ttcp/rtems_ttcp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ttcp/rtems_ttcp.c b/ttcp/rtems_ttcp.c index 08c7b16..b6345c7 100644 --- a/ttcp/rtems_ttcp.c +++ b/ttcp/rtems_ttcp.c @@ -21,6 +21,7 @@ */ #include <stdio.h> +#include <string.h> #include <ctype.h> #include <rtems.h> #include <rtems/rtems_bsdnet.h> @@ -98,6 +99,7 @@ getrusage(int ignored, struct rusage *ru) static void rtems_ttcp_exit (int code) { + rtems_task_wake_after( RTEMS_MILLISECONDS_TO_TICKS(1000) ); rtems_bsdnet_show_mbuf_stats (); rtems_bsdnet_show_if_stats (); rtems_bsdnet_show_ip_stats (); @@ -228,5 +230,6 @@ test_network (void) #define main rtems_ttcp_main #define exit(code) close(fd),rtems_ttcp_exit(code) #define read_timer rtems_read_timer +#undef delay #include "ttcp_orig/ttcp.c" |