Skip to content

Make sure the keymap_fd is always -1

Peter Hutterer requested to merge whot/libei:wip/keymap_fd-fix into master

Default value for this is 0 so if we forget to check the keymap type (which we do) we may end up treating it as a valid fd, closing stdin and generally causing mayhem.

cc @ofourdan

Merge request reports