aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mds.c b/src/mds.c
index a263173..e017cb6 100644
--- a/src/mds.c
+++ b/src/mds.c
@@ -230,6 +230,11 @@ int main(int argc_, char** argv_)
close(fd);
unlink(pathname);
+ /* Remove PID file. */
+ snprintf(pathname, sizeof(pathname) / sizeof(char), "%s/%u.pid",
+ MDS_RUNTIME_ROOT_DIRECTORY, display);
+ unlink(pathname);
+
return rc;
}