samvel1024 / kbct

Keyboard keycode mapping utility for Linux supporting layered configuration
MIT License
272 stars 24 forks source link

Fix crash that occurs when system is suspended #45

Closed herlev closed 3 weeks ago

herlev commented 2 years ago

This fixes #15 by ignoring the error 'IOError(Os { code: 4, kind: Interrupted, message: "Interrupted system call" })'. I don't know if this is the correct way to handle the error.

The documentation says the following about std::io::ErrorKind::Interrupted:

This operation was interrupted. Interrupted operations can typically be retried.