From 7751cdbdaebaf85c0fd6d1480fe3ae3cc81eee32 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 17 Oct 2003 00:10:23 +0000 Subject: small fixes git-svn-id: file:///home/lennart/svn/public/aeswepd/trunk@32 022f378f-78c4-0310-b860-d162c87e6274 --- configure.ac | 2 +- doc/README.html.in | 2 ++ src/aeswepd.c | 9 +++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 9e8e3b4..d5e0795 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. AC_PREREQ(2.57) -AC_INIT([aeswepd], [0.3], [mznrfjrcq (at) 0pointer (dot) de]) +AC_INIT([aeswepd], [0.3b], [mznrfjrcq (at) 0pointer (dot) de]) AC_CONFIG_SRCDIR([src/aeswepd.c]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign -Wall]) diff --git a/doc/README.html.in b/doc/README.html.in index 9660586..7dfc39b 100644 --- a/doc/README.html.in +++ b/doc/README.html.in @@ -44,6 +44,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Fri Oct 17 2003:
+

Version 0.3b released, small bugfixes.

+

Version 0.3 released, split from waproamd, added documentation, manpage, some bug fixes.

Overview

diff --git a/src/aeswepd.c b/src/aeswepd.c index 2975647..1f74c64 100644 --- a/src/aeswepd.c +++ b/src/aeswepd.c @@ -506,12 +506,13 @@ void parse_args(int argc, char *argv[]) { if (_check) { pid_t pid = daemon_pid_file_is_running(); - if (pid == (pid_t) -1) + if (pid == (pid_t) -1 || pid == 0) { printf("aeswepd not running.\n"); - else + exit(255); + } else { printf("aeswepd process for device %s running as pid %u.\n", interface_name, pid); - - exit(pid == 0 ? 255 : 0); + exit(0); + } } if (_list_keys) { -- cgit