From 75435623e1e4b6df641e6058a43f6a2f054e5f4e Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sat, 17 Nov 2012 20:25:29 +0100 Subject: [PATCH] seat: fix forwarding errors in seat_pause() If we force a pause we need to forward the error code. Otherwise, we cannot properly react on it and print warnings. Signed-off-by: David Herrmann --- src/kmscon_seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kmscon_seat.c b/src/kmscon_seat.c index 85990ca..a595695 100644 --- a/src/kmscon_seat.c +++ b/src/kmscon_seat.c @@ -335,7 +335,7 @@ static int seat_pause(struct kmscon_seat *seat, bool force) session_deactivate(seat->current_sess); - return 0; + return ret; } static void seat_reschedule(struct kmscon_seat *seat)