Browse Source

qnetd: Return error code based on ipc closed

So restore pre pr-poll-loop behavior.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Jan Friesse 5 years ago
parent
commit
3bbf28b368
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qdevices/corosync-qnetd.c

+ 1 - 1
qdevices/corosync-qnetd.c

@@ -169,7 +169,7 @@ qnetd_run_main_loop(struct qnetd_instance *instance)
 		return (-1);
 		return (-1);
 	}
 	}
 
 
-	return (poll_res);
+	return (qnetd_ipc_is_closed(instance) ? 0 : -1);
 }
 }
 
 
 static void
 static void