From a24b2e54787958f187b6e51f25d90a525298e023 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Mon, 1 Oct 2012 13:54:08 +0200 Subject: [PATCH] uterm: vt: fix skipping real_activate() when being inactive This is probably a copy&paste error from real_deactivate(). We should skip real_activate() if we are _active_, not if we are _inactive_. Signed-off-by: David Herrmann --- src/uterm_vt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uterm_vt.c b/src/uterm_vt.c index 4ce4633..ec915be 100644 --- a/src/uterm_vt.c +++ b/src/uterm_vt.c @@ -338,7 +338,7 @@ static int real_activate(struct uterm_vt *vt) return -EFAULT; } - if (vts.v_active != vt->real_num) + if (vts.v_active == vt->real_num) return 0; ret = ioctl(vt->real_fd, VT_ACTIVATE, vt->real_num); -- 2.7.4