1 In systemd I have seen this error, using it as a service:
3 vlock-start[14567]: vlock-new: could not activate new terminal: Interrupted system call
5 I think this should fix that.
7 Also on github: https://github.com/viric/vlock/commit/781a26087f83c7247601b6f82f784cca9266694e
9 diff --git a/modules/new.c b/modules/new.c
10 index e9b15fb..7aed640 100644
13 @@ -103,9 +103,19 @@ static char *get_console_name(int n)
15 static int activate_console(int consfd, int vtno)
17 - int c = ioctl(consfd, VT_ACTIVATE, vtno);
20 + c = ioctl(consfd, VT_ACTIVATE, vtno);
21 + } while(c != 0 && errno == EINTR);
23 - return c < 0 ? c : ioctl(consfd, VT_WAITACTIVE, vtno);
28 + c = ioctl(consfd, VT_WAITACTIVE, vtno);
29 + } while(c != 0 && errno == EINTR);
34 struct new_console_context {