projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2e42abf
)
nbd-tester-client: ignore SIGPIPE so we pick up and print the error
author
Alex Bligh <alex@alex.org.uk>
Sun, 5 Jun 2011 15:15:49 +0000
(16:15 +0100)
committer
Wouter Verhelst <w@uter.be>
Thu, 9 Jun 2011 14:40:22 +0000
(16:40 +0200)
nbd-tester-client.c
patch
|
blob
|
history
diff --git
a/nbd-tester-client.c
b/nbd-tester-client.c
index
6145997
..
fee2d87
100644
(file)
--- a/
nbd-tester-client.c
+++ b/
nbd-tester-client.c
@@
-1183,6
+1183,9
@@
int main(int argc, char**argv) {
int testflags=0;
testfunc test = throughput_test;
+ /* Ignore SIGPIPE as we want to pick up the error from write() */
+ signal (SIGPIPE, SIG_IGN);
+
if(argc<3) {
g_message("%d: Not enough arguments", (int)getpid());
g_message("%d: Usage: %s <hostname> <port>", (int)getpid(), argv[0]);