NeilBrown: Monitor: use pclose rather than fclose

Martin F. Krafft madduck at alioth.debian.org
Tue Oct 27 19:21:23 UTC 2009


Module: mdadm
Branch: master
Commit: 6278fb3af762fb965925af48656891d155e737e9
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=6278fb3af762fb965925af48656891d155e737e9

Author: NeilBrown <neilb at suse.de>
Date:   Fri Jul 10 14:39:20 2009 +1000

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 at suse.de>

---

 Monitor.c |    2 +-
 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);
 		}
 
 	}




More information about the pkg-mdadm-commits mailing list