diff options
author | Luca Berra <bluca@comedia.it> | 2010-02-27 16:07:51 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-03-03 11:35:26 +1100 |
commit | cf556303573cd8cb9140c819b1ba1102ebc9cac7 (patch) | |
tree | 43d19c1aa1032df7a101244c2ac793a780ad18aa /msg.c | |
parent | eb49460b74f42e23bf284c4ccf92f4b6da2c582d (diff) | |
download | mdadm-cf556303573cd8cb9140c819b1ba1102ebc9cac7.tar.gz mdadm-cf556303573cd8cb9140c819b1ba1102ebc9cac7.tar.xz mdadm-cf556303573cd8cb9140c819b1ba1102ebc9cac7.zip |
fix mdmon takeover
- when we waited for the old mdmon to exit, we didn't look
for the socket in the right place
- when we failed to find a pid file, we returned the wrong
value (code expected <0, but got ==0).
Signed-off-by: Luca Berra <bluca@comedia.it>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -147,7 +147,7 @@ int connect_monitor(char *devname) int pos; char *c; - pos = sprintf(path, "%s/", VAR_RUN); + pos = sprintf(path, "%s/", pid_dir); if (is_subarray(devname)) { devname++; c = strchr(devname, '/'); |