diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | utils/lockd/lockd.c | 11 |
2 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2001-01-25 H.J. Lu <hjl@lucon.org> + + * utils/lockd/lockd.c (main): Ignore errno == EINVAL. + 2001-01-20 Chip Salzenberg <chip@valinux.com> * support/include/xio.h (xgetc): Declare to return int. diff --git a/utils/lockd/lockd.c b/utils/lockd/lockd.c index 05bc999..900510b 100644 --- a/utils/lockd/lockd.c +++ b/utils/lockd/lockd.c @@ -9,6 +9,7 @@ #include "config.h" #include <stdio.h> +#include <errno.h> #include "nfslib.h" static void usage(const char *); @@ -21,8 +22,14 @@ main(int argc, char **argv) if (argc > 1) usage (argv [0]); - if ((error = lockdsvc()) < 0) - perror("lockdsvc"); + if ((error = lockdsvc()) < 0) { + if (errno == EINVAL) + /* Ignore EINVAL since kernel may start + lockd automatically. */ + error = 0; + else + perror("lockdsvc"); + } return (error != 0); } |