From f97ba1f0db7041622571bf416b49aad2e78b69e3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 24 Aug 2005 10:35:39 +0000 Subject: small timeout when calling xmodmap (for drakx-in-chroot) --- perl-install/keyboard.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/keyboard.pm') diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm index 80e340a10..dbc0b50f8 100644 --- a/perl-install/keyboard.pm +++ b/perl-install/keyboard.pm @@ -584,7 +584,9 @@ sub setup_install { setxkbmap($keyboard); } else { my $f = xmodmap_file($keyboard); - eval { run_program::run('xmodmap', $f) } if $f && !$::testing && $ENV{DISPLAY}; + #- timeout is needed for drakx-in-chroot to kill xmodmap when it gets crazy with: + #- please release the following keys within 2 seconds: Alt_L (keysym 0xffe9, keycode 64) + eval { run_program::raw({ timeout => 3 }, 'xmodmap', $f) } if $f && !$::testing && $ENV{DISPLAY}; } } -- cgit v1.2.1