* utils/lockd/lockd.c (main): Ignore errno == EINVAL.
+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.
#include "config.h"
#include <stdio.h>
+#include <errno.h>
#include "nfslib.h"
static void usage(const char *);
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);
}