The first patch is the same that I sent already before. The second patch fixes an additional bug in the initialization of the busy status. Changes in v2: - Added a comment to get_busy(). - Moved the GetNameOwner call to a separate function. Tanu Kaskinen (2): Call change_cb() only when there's an actual change. Initialize monitor's busy status to false if we own the device. reserve-monitor.c | 98 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 82 insertions(+), 16 deletions(-) -- 1.7.10.4