Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

with the stderred LD_PRELOAD alias this works for me: stderred python -c 'import os; print "Yo!"; os.write(2, "Jola\n\r")' but this doesn't; stderred ruby -e 'puts "Yo!";STDERR.write "Jola\n\r"'

if i do an strace the writes are going to the same file descriptors.. any ideas?



Maybe ruby's write() is not using write() from libc but other function like fprintf?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: