summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-07-10 14:39:20 +1000
committerNeilBrown <neilb@suse.de>2009-07-10 14:39:20 +1000
commit6278fb3af762fb965925af48656891d155e737e9 (patch)
treeb656aeec23feacc1794e4e0ab75da420befb8371
parent0ea2b5ef1be03802f34537330884cdaf72494b01 (diff)
downloadmdadm-6278fb3af762fb965925af48656891d155e737e9.tar.gz
mdadm-6278fb3af762fb965925af48656891d155e737e9.tar.xz
mdadm-6278fb3af762fb965925af48656891d155e737e9.zip
Monitor: use pclose rather than fclose
Using pclose is probably the right thing to do seeing that we used popen, but as there is no clear need to wait for sendmail to finish, it isn't really important. Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--Monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Monitor.c b/Monitor.c
index f6fd95c..af486d7 100644
--- a/Monitor.c
+++ b/Monitor.c
@@ -581,7 +581,7 @@ static void alert(char *event, char *dev, char *disc, char *mailaddr, char *mail
n=fwrite(buf, 1, n, mp); /* yes, i don't care about the result */
fclose(mdstat);
}
- fclose(mp);
+ pclose(mp);
}
}