Home liberachat/#xmonad: Logs Calendar

Logs on 2025-10-03 (liberachat/#xmonad)

01:52:42 × haskellbridge quits (~hackager@syn-096-028-224-214.res.spectrum.com) (Remote host closed the connection)
01:53:49 haskellbridge joins (~hackager@syn-096-028-224-214.res.spectrum.com)
02:44:25 × td_ quits (~td@i53870901.versanet.de) (Ping timeout: 264 seconds)
02:46:01 td_ joins (~td@i5387093E.versanet.de)
05:06:58 × Maeda quits (~Maeda@91-161-10-149.subs.proxad.net) (Quit: Done for the day!)
05:34:24 × redgloboli quits (~redglobol@user/redgloboli) (Quit: ...enter the matrix...)
05:35:59 redgloboli joins (~redglobol@user/redgloboli)
07:59:30 <haskellbridge> <Solid> XLibre looks like a joke and not something one should put their hopes on
08:08:57 ximon joins (~ximon@user/ximon)
08:23:07 × ximon quits (~ximon@user/ximon) (Ping timeout: 250 seconds)
08:23:30 <deepy> It looks to be run by possibly the least pleasant people you'd be able to find, and who instead of acknowledging the issues with X11 instead blames it on some "woke agenda"
10:19:00 Enrico63 joins (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213)
10:57:15 <haskellbridge> <Solid> Yeah, if you're that much of an asshole you get kicked out of contributing to X11 of all things, then I certainly don't want to use your fork either
11:42:55 × Enrico63 quits (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed)
13:09:31 Enrico63 joins (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213)
13:18:18 × ft quits (~ft@p4fc2a225.dip0.t-ipconnect.de) (Ping timeout: 264 seconds)
13:18:18 × srk quits (~sorki@user/srk) (Ping timeout: 264 seconds)
13:18:18 × byorgey quits (~byorgey@user/byorgey) (Ping timeout: 264 seconds)
13:18:24 srk joins (~sorki@user/srk)
13:18:30 ft joins (~ft@p4fc2a225.dip0.t-ipconnect.de)
13:18:33 byorgey joins (~byorgey@155.138.238.211)
13:18:33 × byorgey quits (~byorgey@155.138.238.211) (Changing host)
13:18:33 byorgey joins (~byorgey@user/byorgey)
13:19:24 bla joins (~bla@91.234.125.131)
13:20:09 ChubaDuba joins (~ChubaDuba@5.3.233.76)
13:21:01 × blaa quits (~bla@91.234.125.131) (Ping timeout: 264 seconds)
13:38:52 × Enrico63 quits (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed)
14:21:34 Enrico63 joins (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213)
14:22:06 <Enrico63> geekosaur, I've understood what was going on!
14:30:00 <geekosaur> sigh so still waiting, not that I'm hopeful for much. anyone who can't see that there are actual problems with x11 isn't wworth considering
14:30:36 <Enrico63> And yes, it's due to mixing threads and processes.
14:30:37 <Enrico63> Xmobar plugins can be clickable, just in the sense that you can attach some command to be spawned when you click on them; but you can't feed that click back into the plugin. So my plugin does a weird thing to work around the limitation. It uses to click to write into a pipe, while another thread blocks in reading from that pipe. So I have a `cat`
14:30:37 <Enrico63> process 99.99% of the time blocked waiting for something to be written to the pipe (this is by design, I couldn't think of another way). I've verified that after reproducing the bug, as soon as I echo something into the spurious pipe, cat completes, and the DBus name is freed.
14:30:38 <Enrico63> Now I suppose an easy fix would be not to spawn a `cat` process to read from the pipe but just an async thread blocking on `readFile` or something. But I'm still curious to understand why `kill -KILL $(pidof xmobar)` results in killing the child `cat` process spawned (hence no bug woudl be triggered), but exiting XMonad leaves that  `cat` process
14:30:38 <Enrico63> orphan
14:38:21 <geekosaur> you missed two of us explaining that
14:39:10 <geekosaur> xmonad doesn't kill anything on exit, there's no chance to do so. if you exit the X session then anything woth a connection to the X server will exit, but neither cat nor your notification server has a connection
14:39:20 <geekosaur> dbus runs continuously so it won't disconnect anything eother
14:39:47 <geekosaur> (when you mod-q restart, the killing is done by the new xmonad, not the old)
14:46:07 <Enrico63> Well, what can I say? I'm sorry for not understanding? '=D
14:50:42 <Enrico63> There's still things I don't quite get yet. Why killing the parent process (i.e. xmobar) of the `cat` process that is causing the problem, also causes `cat` to terminate, whereas exiting the parent process (by exiting X ) doesn't?
14:51:50 <Enrico63> Is it that kill will look for children processes and kill them too, whereas a process, when exiting, has to actively decide wether to shut down processes it has spawned?
14:57:57 <Enrico63> No, I'm saying BS, once a process spawns another one it doesn't have a handle on it to control it. Ok I think I understand now.
14:58:41 <Enrico63> Apologies for not understanding yesterday explanation, but thanks
15:12:15 <liskin> That sounds like processes spawned from your xmobar inherit it's fds
15:12:27 <liskin> It's possible to mark fds as close-on-exec
15:12:44 <liskin> *its
15:13:21 <liskin> Also I'd probably consider using something else than pipes for that comms
15:13:38 <liskin> Like, I dunno, dbus since you have that anyway? Or X props.
15:35:19 <Enrico63> In my usecase a mouse click on the plugin spawns an `echo` that puts some info somewhere, but then another process has to be waiting to read that info. The pipe gave me the advantage that I wouldn't have to poll "is the info there?", because reading from it would block. It felt convenient.
15:35:19 <Enrico63> That would not be possible with x props, no?
15:36:03 <Enrico63> The click happens only when I want to dismiss a notification, if any ever comes up.
15:41:34 × ChubaDuba quits (~ChubaDuba@5.3.233.76) (Quit: WeeChat 4.6.3)
15:55:52 × T_X quits (~T_X@diktynna.open-mesh.org) (Read error: Connection reset by peer)
15:56:02 T_X joins (~T_X@diktynna.open-mesh.org)
16:14:47 × ml| quits (~ml|@user/ml/x-5298235) (Ping timeout: 244 seconds)
16:28:56 ml| joins (~ml|@user/ml/x-5298235)
17:09:16 × Enrico63 quits (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed)
17:18:12 Enrico63 joins (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213)
18:02:38 × Enrico63 quits (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed)
18:56:50 <liskin> Depends on what's on the other side
18:57:39 <liskin> Don't think you need to block but also don't know how easy it is to listen for something else than a pipe
19:15:03 zeniegirl joins (~EricaLina@user/zengirl)
19:16:25 zeniegirl parts (~EricaLina@user/zengirl) (ERC 5.6.1-git (IRC client for GNU Emacs 31.0.50))
21:04:51 Enrico63 joins (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213)
22:53:01 × Enrico63 quits (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed)

All times are in UTC on 2025-10-03.