[patch] return a non-zero exit status when the BLKTRACETEARDOWN ioctl fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm doing some scripting, and would really like to know when things
fail.  ;)

Signed-off-by: Jeff Moyer <jmoyer@xxxxxxxxxx>

diff --git a/blktrace.c b/blktrace.c
index b4c919d..23f3eb5 100644
--- a/blktrace.c
+++ b/blktrace.c
@@ -2634,6 +2634,7 @@ int main(int argc, char *argv[])
 				fprintf(stderr,
 					"BLKTRACETEARDOWN %s failed: %d/%s\n",
 					dpp->path, errno, strerror(errno));
+				ret = 1;
 			}
 		}
 	} else if (net_mode == Net_server) {
--
To unsubscribe from this list: send the line "unsubscribe linux-btrace" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux