havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.0, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
<mooff> all works dandy except.. after a short while, i get a stacktrace about sslv3 alert bad record mac
<mooff> .. on the parent process. does anyone know what's going on?
<leah2> sounds weird, perhaps it flushes some buffer twice
<leah2> try io.close_on_exec = true in the parent instead
<leah2> should be on by default tho oO
<mooff> fwiw, the io is a UNIXSocket. close_on_exec didn't seem to close it for the fork :(
<leah2> Sends "close notify" to the peer and tries to shut down the SSL
<leah2> connection gracefully.
<leah2> so that's why it fails ;)
<mooff> huh
<leah2> oh but you tried socket.io.close?
<mooff> yah, i'm trying .io.close to avoid SSL shut down
<leah2> not socket.close
<mooff> maybe i should try to close an IO.pipe, or something, to see if it affects the parent
<leah2> cant really
<leah2> strace the child to see if anything writes
<mooff> oof
<leah2> hey it's easier than tcpdump :p
<mooff> heheh
<mooff> alright, 1 min
<leah2> maybe flush the io before fork?
mixfix41 has joined #ruby
victori has quit [Ping timeout: 250 seconds]
<mooff> the connection is idle most of the time.. unlikely it has anything to write
victori has joined #ruby
<mooff> so from strace.. the fork only does e.g. close(17) = 0.
<mooff> where 17 is the fd in question
<leah2> hm, that shouldnt do any harm...
<mooff> could the parent get some kind of signal about it?
<mooff> stracing *it* would be a bit more noisy.. but couldn't hurt
<mooff> so when the fork closed that fd 17, the parent's.. kept working
mixfix41 has quit [Ping timeout: 240 seconds]
<mooff> two differences between the bork scenario and the working scenario:
<mooff> - the bork scenario has used Process::Sys.setregid and Process::Sys.setreuid to switch to a different user
mixfix41 has joined #ruby
<mooff> .. then closed the fd, tried (on purpose) to write to it, and so exited from an exception immediately
<mooff> - the working scenario stayed as root. it did Signal.trap('USR1') { io.close }; sleep 3600. then i sent it USR1
<leah2> hmm
<leah2> i'm out of ideas, sorry
unyu has quit [Quit: WeeChat 3.4]
Rounin has joined #ruby
<mooff> no worries, thank you
Guest9014 has quit [Ping timeout: 240 seconds]
unyu has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
jhawthorn has quit [Quit: ZNC 1.8.2 - https://znc.in]
justache has quit [Ping timeout: 256 seconds]
hightower2 has quit [Remote host closed the connection]
jhawthorn has joined #ruby
justache has joined #ruby
ZAJDAN has quit [Ping timeout: 256 seconds]
<ox1eef> weaksauce: i built from source using ./configure --prefix=/home/0x1eef/.rubies/3.1.0/ && make && make install
bluedust has joined #ruby
goldfish has quit [Ping timeout: 240 seconds]
<weaksauce> ox1eef curious
<weaksauce> i can't imagine any world where it doesn't error on that
mdemo has quit [Quit: The Lounge - https://thelounge.github.io]
fercell has quit [Ping timeout: 250 seconds]
ralu has quit [Ping timeout: 256 seconds]
seabre_ has quit [Ping timeout: 240 seconds]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
<ox1eef> weaksauce: which error ? the issue was that /home on freebsd points to /usr/home, so it was working correctly all along. compile etc went fine.
<ox1eef> while the directory didn't exist (the .rubies/3.1.0 part), ruby looks to create it for you.
shokohsc has quit [Ping timeout: 250 seconds]
shokohsc has joined #ruby
fowl has joined #ruby
seabre has joined #ruby
ralu has joined #ruby
polishdub has quit [Ping timeout: 256 seconds]
fowl has quit [Quit: Client closed]
Vaevictu1 has joined #ruby
Vaevictus has quit [Ping timeout: 250 seconds]
vigumnov has joined #ruby
victori has quit [Ping timeout: 256 seconds]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
victori has joined #ruby
vigumnov has quit [Ping timeout: 256 seconds]
vigumnov has joined #ruby
victori has quit [Read error: Connection reset by peer]