From: Daniel Pocock <daniel@pocock.pro>
To: linux-nfs@vger.kernel.org
Subject: [PATCH] nfs-utils: start-statd script using incompatible file descriptor
Date: Sat, 17 Dec 2016 12:00:47 +0100 [thread overview]
Message-ID: <70eeb75e-e48f-fb0a-a690-1c6c8cb0ede4@pocock.pro> (raw)
[-- Attachment #1: Type: text/plain, Size: 277 bytes --]
The current script uses fd 200, doesn't work for every possible shell as
reported[1] in Debian bug #848277
We are including a patch for it in the 1.3.4-2 package, it would be good
to incorporate this patch upstream too.
Regards,
Daniel
1. https://bugs.debian.org/848277
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 29-start-statd-fd-9.patch --]
[-- Type: text/x-patch; name="29-start-statd-fd-9.patch", Size: 461 bytes --]
diff --git a/utils/statd/start-statd b/utils/statd/start-statd
index 2fd6039..82715b4 100755
--- a/utils/statd/start-statd
+++ b/utils/statd/start-statd
@@ -7,8 +7,8 @@
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
# Use flock to serialize the running of this script
-exec 200> /var/run/rpc.statd.lock
-flock -e 200
+exec 9> /var/run/rpc.statd.lock
+flock -e 9
if [ -s /var/run/rpc.statd.pid ] &&
[ 1`cat /var/run/rpc.statd.pid` -gt 1 ] &&
next reply other threads:[~2016-12-17 11:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-17 11:00 Daniel Pocock [this message]
2016-12-17 18:27 ` [PATCH] nfs-utils: start-statd script using incompatible file descriptor Steve Dickson
2016-12-20 18:30 ` Steve Dickson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=70eeb75e-e48f-fb0a-a690-1c6c8cb0ede4@pocock.pro \
--to=daniel@pocock.pro \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox