IRC channel logs

2020-08-10.log

back to list of logs

<str1ngs>pkill9: I hear ya
<pkill9>is there a way to watch for sigusr signals in a guile script?
<pkill9>i want to run a daemon that waits for these signals
<RhodiumToad>(sigaction)
<pkill9>thanks RhodiumToad
<RhodiumToad>though honestly signals are messy and may not be the best way to wait for events
<pkill9>yea i found it laggy
<pkill9>what would be a better way
<pkill9>?*
<RhodiumToad>guile does defer the call to a signal handler until the interpreter reaches some safe point, which may be an issue depending on what your thread is doing in the mean time
<RhodiumToad>what sort of things is the daemon doing?
<RhodiumToad>reading a fifo is one of the obvious alternative methods
<pkill9>basically it just runs a swaymsg command
<pkill9>it go to prev/next workspace, skipping a specified workspace
<pkill9>calling it each time has some noticeable lag, not terrible, but not great
<pkill9>a fifo would work yea
<pkill9>is there a guile function for creating a fifo?
<RhodiumToad>(mknod)
***wxie1 is now known as wxie
***wxie1 is now known as wxie
***apteryx_ is now known as apteryx
<dsmith-work>UGT Greetings, Guilers
***terpri__ is now known as terpri
***apteryx_ is now known as apteryx
***heisenberg-25 is now known as Habush
<Habush>aleix: Hi. Any update on the libevent PR?
***sneek_ is now known as sneek
***jonsger1 is now known as jonsger