From 5a59325987ff199e6942fbb8a9199da35e37c990 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Thu, 11 Sep 2014 16:38:35 +0200 Subject: [PATCH] connection: return -EOPNOTSUPP if the connection has already died --- connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.c b/connection.c index 1ba4df5..2778e0b 100644 --- a/connection.c +++ b/connection.c @@ -797,7 +797,7 @@ int kdbus_conn_disconnect(struct kdbus_conn *conn, bool ensure_queue_empty) mutex_lock(&conn->lock); if (!kdbus_conn_active(conn)) { mutex_unlock(&conn->lock); - return -EALREADY; + return -EOPNOTSUPP; } if (ensure_queue_empty && !list_empty(&conn->queue.msg_list)) { -- 2.34.1