diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-02-22 11:45:10 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-02-22 12:52:06 +0200 |
commit | c15bf2380377abf2e8abb91892eb172d5062d75c (patch) | |
tree | 22c3a48161a4ee4d0c46d99bfc71f4cc2c8c3950 | |
parent | dcbeb57089029a933397fe238f986e8bc8bf1f3a (diff) | |
download | ping903-c15bf2380377abf2e8abb91892eb172d5062d75c.tar.gz ping903-c15bf2380377abf2e8abb91892eb172d5062d75c.tar.bz2 |
Minor changes, Version 0.3v0.3
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/ping903.c | 8 | ||||
-rw-r--r-- | src/pinger.c | 3 |
3 files changed, 7 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 3105332..0831e7e 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ # along with Ping903. If not, see <http://www.gnu.org/licenses/>. AC_PREREQ([2.69]) -AC_INIT([Ping903], [0.2], [gray@gnu.org], +AC_INIT([Ping903], [0.3], [gray@gnu.org], [ping903], [https://puszcza.gnu.org.ua/projects/ping903/]) AC_CONFIG_SRCDIR([src/main.c]) diff --git a/src/ping903.c b/src/ping903.c index 4e5310f..bda2314 100644 --- a/src/ping903.c +++ b/src/ping903.c @@ -488,12 +488,12 @@ ping903(void) sigdelset(&sigs, SIGPIPE); pthread_sigmask(SIG_UNBLOCK, &sigs, NULL); - /* Start the Scheduler thread */ - pthread_create(&tid, NULL, p903_scheduler, NULL); - /* Start the Sender thread */ - pthread_create(&tid, NULL, p903_sender, NULL); /* Start the Receiver thread */ pthread_create(&tid, NULL, p903_receiver, NULL); + /* Start the Sender thread */ + pthread_create(&tid, NULL, p903_sender, NULL); + /* Start the Scheduler thread */ + pthread_create(&tid, NULL, p903_scheduler, NULL); /* Wait for signal to arrive */ sigwait(&sigs, &i); diff --git a/src/pinger.c b/src/pinger.c index 3ee36dd..cbc80d2 100644 --- a/src/pinger.c +++ b/src/pinger.c @@ -763,7 +763,8 @@ p903_receiver(void *p) host->recv_count++; if (verbose > 1) - log_echo((struct sockaddr *)&addr, addrlen, icmp, ip, n, rtt); + log_echo((struct sockaddr *)&addr, addrlen, + icmp, ip, n, rtt); if (host->recv_count == ping_count) host_stat_commit(host); } else |