From: Daniel Mack Date: Thu, 11 Sep 2014 14:38:35 +0000 (+0200) Subject: connection: return -EOPNOTSUPP if the connection has already died X-Git-Tag: upstream/0.20140911.160207utc~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a59325987ff199e6942fbb8a9199da35e37c990;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git connection: return -EOPNOTSUPP if the connection has already died --- 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)) {