02:36:50  * codebyterequit (Ping timeout: 256 seconds)
02:37:17  * codebyterejoined
05:30:54  * Jacob843quit (Read error: Connection reset by peer)
05:32:09  * Jacob843joined
07:20:25  * Jacob843quit (Read error: Connection reset by peer)
07:20:56  * Jacob843joined
07:52:45  * saghuljoined
08:15:11  * amosbirdquit (Quit: ZNC 1.7.0 - https://znc.in)
08:15:27  * amosbirdjoined
08:49:25  * saghulquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:55:27  * saghuljoined
09:50:21  * timotimoquit (Ping timeout: 240 seconds)
09:50:53  * timotimojoined
10:15:35  * saghulquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:25:10  * mylesborinsquit (Quit: farewell for now)
10:25:18  * mylesborinsjoined
11:09:38  * Jacob843quit (Ping timeout: 260 seconds)
11:22:00  * saghuljoined
11:39:11  <mikroskeem>hey, what does this mean: src/unix/stream.c:1165: uv__read: Assertion `uv__stream_fd(stream) >= 0' failed.
11:39:44  <mikroskeem>seems to happen after i do uv_close(tty_handle)
11:56:19  <sgimeno>do you have code that reproduces the issue?
12:02:37  <mikroskeem>sec
12:02:47  <mikroskeem>i have 2 options
12:02:57  <mikroskeem>give access to my private github repo
12:03:40  <mikroskeem>or (it's going to take some time) clean the codebase up and try to get that specific part of code
12:04:08  <sgimeno>i'd prefer the 2nd option :)
12:06:17  <mikroskeem>okay so
12:06:21  <mikroskeem>i'm doing this:
12:06:42  <mikroskeem>i'm creating a pseudoterminal and spawning a process
12:06:58  <mikroskeem>then i start reading the pty using uv_read
12:07:06  <mikroskeem>okay that works
12:09:14  <mikroskeem>now i have signal handler, when program gets signal over msgpack rpc, then program invokes kill(3) and does this: https://paste.wut.ee/ihiwiyahep.c
12:11:03  <mikroskeem>lol wat i think i figured it out right now
12:11:12  <mikroskeem>L10 lies
12:11:19  <mikroskeem>it indeed does get there
12:13:22  <mikroskeem>oh well
12:26:05  <mikroskeem>no wait wtf
12:26:09  <mikroskeem>i still get that error
13:06:11  * Jacob843joined
13:22:04  <mikroskeem>printf("DEBUG: io_watcher.fd -> %d\n", (&handle->uv_tty_handle)->io_watcher.fd);
13:22:09  <mikroskeem>it's -1 after uv_close
13:22:19  <mikroskeem>and i get that assertion error after that
13:23:06  <mikroskeem>seems like uv_read_stop doesn't actually stop reading at that point when it's called? 🤔
13:27:35  <mikroskeem>or maybe i should drain the stream before i slam uv_close
13:56:11  <mikroskeem>yeah now is the thing how do i drain the stream properly?
16:17:08  * saghulquit (Ping timeout: 276 seconds)