00:07
pie_ has joined #ocaml
00:07
<
pie_ >
I'm running into a problem on nixos;
00:08
<
pie_ >
apparentl in the Unix library in the stdlib, open_process_args_in and related functions call open_proc like `open_proc proc args None ...`
00:08
<
pie_ >
open_proc is:
00:08
<
pie_ >
let open_proc prog args envopt proc input output error =
00:08
<
pie_ >
i.e. it can be seen that open_proc is called with an explicitly empty environment
00:10
<
pie_ >
this causes issues on nixos because we depend ...oh actually hm
00:10
<
pie_ >
those end up going through to being a call to spawn.c
00:11
<
pie_ >
if (Is_some(optenv)) {
00:11
<
pie_ >
envp = caml_unix_cstringvect(Some_val(optenv), "create_process");
00:11
<
pie_ >
envp = environ;
00:11
<
pie_ >
back to the drawing board...
00:13
<
pie_ >
(I knew surely the ocaml stdlib isn't that naive...)
00:13
<
pie_ >
so, my actual problem is that something invoked via open_process_in is started with a totally empty environment
00:21
<
pie_ >
ok, apparently I missed that some code was running open_process_full with explcit empty args; let chan_out, chan_in, chan_err = open_process_full cmd [||] in ...
00:27
ente` has joined #ocaml
00:29
<
pie_ >
What is [| |] syntax?
00:33
<
pie_ >
Hm. So in a way the problem is that there is no way to have open_process_Args_full pass None to spawn, because it explicitly passes (Some env)
00:46
TheRuralJuror has joined #ocaml
00:46
TheRuralJuror_ has joined #ocaml
00:46
TheRuralJuror_ has quit [Client Quit]
01:06
azimut has quit [Ping timeout: 258 seconds]
01:14
williewillus has quit [Ping timeout: 244 seconds]
01:16
spip has joined #ocaml
01:16
bobo_ has quit [Ping timeout: 260 seconds]
01:19
zebrag has quit [Quit: Konversation terminated!]
01:28
John_Ivan has quit [Ping timeout: 252 seconds]
01:28
Haudegen has quit [Quit: Bin weg.]
01:29
rgrinberg has joined #ocaml
01:30
Haudegen has joined #ocaml
01:35
zebrag has joined #ocaml
01:46
Haudegen has quit [Ping timeout: 244 seconds]
02:40
chrisz has quit [Ping timeout: 248 seconds]
02:41
chrisz has joined #ocaml
02:44
terrorjack has joined #ocaml
02:45
ZachPizazz has quit [Quit: Client closed]
02:53
hackinghorn has joined #ocaml
02:59
hackinghorn has quit [Changing host]
02:59
hackinghorn has joined #ocaml
04:03
zebrag has quit [Quit: Konversation terminated!]
04:03
jpds1 has quit [Remote host closed the connection]
04:04
jpds1 has joined #ocaml
04:21
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:22
rgrinberg has joined #ocaml
04:27
rgrinberg has quit [Ping timeout: 244 seconds]
04:27
wingsorc has quit [Ping timeout: 260 seconds]
04:44
adanwan has quit [Quit: _]
04:45
adanwan has joined #ocaml
04:47
jpds1 has quit [Remote host closed the connection]
04:48
jpds1 has joined #ocaml
06:36
mbuf has joined #ocaml
06:53
rgrinberg has joined #ocaml
06:57
rgrinberg has quit [Ping timeout: 265 seconds]
07:00
mbuf has quit [Quit: Leaving]
07:03
rgrinberg has joined #ocaml
07:04
mbuf has joined #ocaml
07:09
rgrinberg has quit [Ping timeout: 265 seconds]
07:14
rgrinberg has joined #ocaml
07:30
rgrinberg has quit [Ping timeout: 268 seconds]
07:48
rgrinberg has joined #ocaml
07:49
Serpent7776 has joined #ocaml
07:53
rgrinberg has quit [Ping timeout: 265 seconds]
07:59
rgrinberg has joined #ocaml
08:04
rgrinberg has quit [Ping timeout: 264 seconds]
08:10
rgrinberg has joined #ocaml
08:15
rgrinberg has quit [Ping timeout: 265 seconds]
08:28
emp has joined #ocaml
08:33
Haudegen has joined #ocaml
08:44
rgrinberg has joined #ocaml
08:54
rgrinberg has quit [Ping timeout: 268 seconds]
09:02
bartholin has joined #ocaml
09:12
rgrinberg has joined #ocaml
09:16
rgrinberg has quit [Ping timeout: 250 seconds]
09:20
olle has joined #ocaml
09:51
spip has quit [Quit: Konversation terminated!]
09:54
spip has joined #ocaml
10:06
rgrinberg has joined #ocaml
10:17
rgrinberg has quit [Ping timeout: 268 seconds]
10:35
rgrinberg has joined #ocaml
10:39
rgrinberg has quit [Ping timeout: 250 seconds]
11:58
rgrinberg has joined #ocaml
11:59
amk has quit [Remote host closed the connection]
11:59
amk has joined #ocaml
12:03
rgrinberg has quit [Ping timeout: 250 seconds]
12:42
John_Ivan has joined #ocaml
12:49
Serpent7776 has quit [Ping timeout: 265 seconds]
12:54
rgrinberg has joined #ocaml
12:58
rgrinberg has quit [Ping timeout: 265 seconds]
13:08
szkl has quit [Quit: Connection closed for inactivity]
13:16
rgrinberg has joined #ocaml
13:16
bobo_ has joined #ocaml
13:16
spip has quit [Ping timeout: 264 seconds]
13:21
rgrinberg has quit [Ping timeout: 265 seconds]
13:24
xgqt has quit [Ping timeout: 268 seconds]
13:25
xgqt has joined #ocaml
13:38
azimut has joined #ocaml
13:46
rgrinberg has joined #ocaml
13:50
<
sim642 >
Use the non-_full function instead?
13:51
rgrinberg has quit [Ping timeout: 250 seconds]
14:03
rgrinberg has joined #ocaml
14:03
rgrinberg has quit [Excess Flood]
14:18
Serpent7776 has joined #ocaml
15:29
mbuf has quit [Quit: Leaving]
16:21
mro has joined #ocaml
16:26
mro has quit [Quit: Leaving...]
17:01
emp has joined #ocaml
17:18
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
17:20
Haudegen has joined #ocaml
18:44
Everything has joined #ocaml
18:56
waleee has joined #ocaml
19:11
williewillus has joined #ocaml
19:51
noonien has joined #ocaml
20:58
Everything has quit [Quit: leaving]
21:01
bartholin has quit [Quit: Leaving]
21:56
olle has quit [Ping timeout: 250 seconds]
22:17
John_Ivan has quit [Ping timeout: 268 seconds]
22:26
Serpent7776 has quit [Ping timeout: 265 seconds]
22:37
Tuplanolla has quit [Quit: Leaving.]
22:59
Haudegen has quit [Ping timeout: 265 seconds]
22:59
troydm has quit [Ping timeout: 244 seconds]
23:03
szkl has joined #ocaml
23:43
troydm has joined #ocaml