Why not just using an unused fd?

|
capezotte 2022-08-21 17:50:26
Spektrum_light 2022-08-21 17:50:11
fd 3 is stderr right?

no that’s 2

capezotte 2022-08-21 17:50:32
don’t set it to 2, you’d lose log
Spektrum_light 2022-08-21 17:50:38
stdout?
capezotte 2022-08-21 17:50:38
just don’t use notification fd
Spektrum_light 2022-08-21 17:50:43
okay let me try
Spektrum_light 2022-08-21 17:51:06
yeah that works, thanks
qontinuum 2022-08-21 17:51:15
Why not just using an unused fd?
capezotte 2022-08-21 17:51:37
Spektrum_light 2022-08-21 17:50:11
fd 3 is stderr right?

pictured: lua user

Spektrum_light 2022-08-21 17:51:43
qontinuum 2022-08-21 17:51:15
Why not just using an unused fd?

because I’m a dumb idiotic dumbfuck and I can’t fd

Spektrum_light 2022-08-21 17:51:57
capezotte 2022-08-21 17:50:32
don’t set it to 2, you’d lose log

i’ve set that to 3 tho

capezotte 2022-08-21 17:52:31
Spektrum_light 2022-08-21 17:51:57
i’ve set that to 3 tho

problem is, it requires support from the daemon

Spektrum_light 2022-08-21 17:52:39
capezotte 2022-08-21 17:52:31
problem is, it requires support from the daemon

oh I see now

capezotte 2022-08-21 17:53:24
like the -n in seatd
capezotte 2022-08-21 17:53:38
or -d in s6-log
qontinuum 2022-08-21 17:53:49
capezotte 2022-08-21 17:52:31
problem is, it requires support from the daemon

So when the daemon doesn’t explicitly support notification fd you listen on a random one until it writes stuff?

capezotte 2022-08-21 17:54:42
qontinuum 2022-08-21 17:53:49
So when the daemon doesn’t explicitly support notification fd you listen on a random one until it writes stuff?

you could do that, but it’s better to give up and go “if it starts, it’s ready” (aka no notification-fd)

capezotte 2022-08-21 17:54:49
runit logic essentially
qontinuum 2022-08-21 17:55:05
Ah yeah okay
capezotte 2022-08-21 17:56:48
artixlinux-498360.jpg
based seatd
qontinuum 2022-08-21 17:57:41
Oh it is a whole protocol? Not just if there is a write on the fd we consider it ready?
Night_H4nter 2022-08-21 17:57:42
capezotte 2022-08-21 17:56:48
based seatd

does it implement logind apis/abis?

capezotte 2022-08-21 17:57:53
Night_H4nter 2022-08-21 17:57:42
does it implement logind apis/abis?

somehow it does on artix

capezotte 2022-08-21 17:58:19
qontinuum 2022-08-21 17:57:41
Oh it is a whole protocol? Not just if there is a write on the fd we consider it ready?

the whole protocol is write a newline and close the fd

capezotte 2022-08-21 17:58:51
spec fits on a post-it
qontinuum 2022-08-21 17:59:07
Ah xD
Spektrum_light 2022-08-21 17:59:29
capezotte 2022-08-21 17:58:51
spec fits on a post-it

like smalltalk’s syntax

capezotte 2022-08-21 18:28:01
Spektrum_light 2022-08-21 17:59:29
like smalltalk’s syntax

so that’s why it’s called smalltalk

capezotte 2022-08-21 18:28:09
toki pona programing language
qontinuum 2022-08-21 18:53:09
Is the notification protocol a subset of whitespace then?
ChrisCromer 2022-08-21 18:56:37
qontinuum 2022-08-21 18:53:09
Is the notification protocol a subset of whitespace then?

Python is a subset of tabs. 😏

ChrisCromer 2022-08-21 18:57:08
In between tons of tabs you can find some code.
capezotte 2022-08-21 19:39:19
then a superset?
Senderman 2022-08-21 19:40:34
guys are there any programmers in the group? Yesterday I rebooted my chandelier with the power switch, first reboot was at 8pm, second at 12 am, on both reboots the light bulbs crashed
Senderman 2022-08-21 19:40:45
artixlinux-498380.jpg
here’re the logs
capezotte 2022-08-21 19:41:21
Senderman 2022-08-21 19:40:45
here’re the logs

rip your lightbulbs

|