luvit / luv

Bare libuv bindings for lua
Apache License 2.0
832 stars 187 forks source link

Importance of case for signal names (and other names) #700

Closed homedirectory closed 7 months ago

homedirectory commented 7 months ago

There are functions that accept a signal, either an integer or a string, with the latter standing for the signal's name. However, it is not mentioned that the name must be strictly lowercase, which is likely to become a source of confusion (I know that it was for me: I initially used uppercase).

Some examples include:

homedirectory commented 7 months ago

Pardon, I just realised that the documentation does mention this (it says default: sigterm, which is a hint). I had been using the documentation of luv included in NeoVim and I did not have the latest version installed.