From: NeilBrown Date: Fri, 10 Jul 2009 04:39:20 +0000 (+1000) Subject: Monitor: use pclose rather than fclose X-Git-Tag: mdadm-3.0.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6278fb3af762fb965925af48656891d155e737e9;p=thirdparty%2Fmdadm.git 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 --- diff --git a/Monitor.c b/Monitor.c index f6fd95cd..af486d70 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); } }