diff options
author | NeilBrown <neilb@suse.de> | 2010-03-03 10:54:17 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-03-03 10:54:17 +1100 |
commit | fcf5762500297536d3c3376945684c4f654ffe44 (patch) | |
tree | df16a74f63ba3739e467c62e580f6bcc7f019389 /mdmon.c | |
parent | 53f50353399f71aef4041b42df845803e7388d12 (diff) | |
download | mdadm-fcf5762500297536d3c3376945684c4f654ffe44.tar.gz mdadm-fcf5762500297536d3c3376945684c4f654ffe44.tar.xz mdadm-fcf5762500297536d3c3376945684c4f654ffe44.zip |
Add _FORTIFY_SOURCE to mdadm.O2 build.
When building mdadm.O2, set _FORTIFY_SOURCE to get more
warnings, and also build mdmon.O2 to find warnings in that
code too.
Then fix the warnings.
Suggested-by: Luca Berra <bluca@comedia.it>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.c')
-rw-r--r-- | mdmon.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -176,7 +176,10 @@ static void try_kill_monitor(pid_t pid, char *devname, int sock) fl = fcntl(sock, F_GETFL, 0); fl &= ~O_NONBLOCK; fcntl(sock, F_SETFL, fl); - read(sock, buf, 100); + n = read(sock, buf, 100); + /* Ignore result, it is just the wait that + * matters + */ } void remove_pidfile(char *devname) |