summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
authorKarel Zak2016-02-12 11:21:50 +0100
committerKarel Zak2016-02-12 11:21:50 +0100
commitd0fe12aeb4ac2f3f20f82664cd2f50ba35c8ba89 (patch)
treeaa225141ece6bfa944145789ec7350ce06ed60ad /login-utils
parentsulogin: avoid shared memory area usemask but use waitid() for childs (diff)
downloadkernel-qcow2-util-linux-d0fe12aeb4ac2f3f20f82664cd2f50ba35c8ba89.tar.gz
kernel-qcow2-util-linux-d0fe12aeb4ac2f3f20f82664cd2f50ba35c8ba89.tar.xz
kernel-qcow2-util-linux-d0fe12aeb4ac2f3f20f82664cd2f50ba35c8ba89.zip
sulogin: keep initialization more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils')
-rw-r--r--login-utils/sulogin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c
index 4b1e44b07..643712ff5 100644
--- a/login-utils/sulogin.c
+++ b/login-utils/sulogin.c
@@ -857,7 +857,7 @@ int main(int argc, char **argv)
struct console *con;
char *tty = NULL;
struct passwd *pwd;
- struct timespec sigwait = {0, 50000000};
+ struct timespec sigwait = { .tv_sec = 0, .tv_nsec = 50000000 };
siginfo_t status = {};
sigset_t set = {};
int c, reconnect = 0;