Make sure the keymap_fd is always -1
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
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
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