summaryrefslogtreecommitdiff
path: root/instr-client.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-07-19 14:48:02 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-07-19 14:48:02 -0400
commit9a5b7483dc16651bbef5aeae9791c9ccb120380a (patch)
tree1bbe0cd66dd30b9118e5c504f11829e0b2f487c0 /instr-client.c
parent4e6a4994026bffa5036af51124099de4ebab413d (diff)
added make install; fixed echoing
Diffstat (limited to 'instr-client.c')
-rw-r--r--instr-client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/instr-client.c b/instr-client.c
index 7298774..a80a0e3 100644
--- a/instr-client.c
+++ b/instr-client.c
@@ -85,9 +85,8 @@ static gboolean cbServerInput(gpointer data, gpointer additional)
GPollableInputStream* inStream = (GPollableInputStream*)data;
size=g_pollable_input_stream_read_nonblocking(inStream, buffer, BUFSIZE, NULL, NULL);
- if(size <=0 || size == G_IO_ERROR_WOULD_BLOCK) {
- terminate("Connection to server lost", -1);
- }
+ if(size <=0) terminate("Connection to server lost", -1);
+
g_print("\n%s", buffer);
g_print("> ");
return TRUE;