mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
d57b81aac7
- Add GetCpuCount() API to redbean - Add unix.gmtime() API to redbean - Add unix.readlink() API to redbean - Add unix.localtime() API to redbean - Perfect the new redbean UNIX module APIs - Integrate with Linux clock_gettime() vDSO - Run Lua garbage collector when malloc() fails - Fix another regression quirk with linenoise repl - Fix GetProgramExecutableName() for systemwide installs - Fix a build flake with test/libc/mem/test.mk SRCS list
11 lines
277 B
Lua
Executable file
11 lines
277 B
Lua
Executable file
#!/home/jart/bin/redbean -i
|
|
assert(unix.sigaction(unix.SIGUSR1, function(sig)
|
|
gotsigusr1 = true
|
|
end))
|
|
gotsigusr1 = false
|
|
assert(unix.raise(unix.SIGUSR1))
|
|
if gotsigusr1 then
|
|
print('hooray the signal was delivered')
|
|
else
|
|
print('oh no some other signal was handled')
|
|
end
|