diff options
author | NeilBrown <neilb@suse.de> | 2009-07-10 14:39:20 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-07-10 14:39:20 +1000 |
commit | 6278fb3af762fb965925af48656891d155e737e9 (patch) | |
tree | b656aeec23feacc1794e4e0ab75da420befb8371 /Monitor.c | |
parent | 0ea2b5ef1be03802f34537330884cdaf72494b01 (diff) | |
download | mdadm-6278fb3af762fb965925af48656891d155e737e9.tar.gz |
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>
Diffstat (limited to 'Monitor.c')
-rw-r--r-- | Monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |