Commit 2672877a authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add a sleep after HUPing mountd so that the mounts are consistent

before returning, so that the scripts on paper will not have problems.
I think this is a hacky solution, and probably not entirely correct
since all kinds of scripts are running on paper.
parent 005a320b
......@@ -97,6 +97,12 @@ if ($mpid =~ /^([-\@\w.]+)$/) {
kill('HUP', $mpid) or
fatal("Could not kill(HUP) process $mpid (mountd): $!");
#
# Allow time to react since HUP'ing mountd causes all mounts to briefly
# become invalid, and this causes problems for our scripts (and for users).
#
sleep(1);
exit(0);
sub fatal {
......
......@@ -97,6 +97,12 @@ if ($mpid =~ /^([-\@\w.]+)$/) {
kill('HUP', $mpid) or
fatal("Could not kill(HUP) process $mpid (mountd): $!");
#
# Allow time to react since HUP'ing mountd causes all mounts to briefly
# become invalid, and this causes problems for our scripts (and for users).
#
sleep(1);
exit(0);
sub fatal {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment