Remove .sock file when removing .pid file for mdmon

This commit is contained in:
NeilBrown 2008-09-18 16:43:59 +10:00
parent dbb44303d7
commit 5775279572
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ void remove_pidfile(char *devname)
sprintf(buf, "/var/run/mdadm/%s.pid", devname);
unlink(buf);
sprintf(buf, "/var/run/mdadm/%s.sock", devname);
unlink(buf);
}
int make_control_sock(char *devname)