Menu

#Stdout

4 posts

Feed·
4 of 4 posts
Passing STDOUT to proc_open() can overwrite your log
📰
0Read More

Passing STDOUT to proc_open() can overwrite your log

DEV Community: php·Vainamoinen | Pulsed Media·7 days ago
#GDzcvLDf
#devto#dev#line#stdout#child

PHP's proc_open() rewinds a redirected stdout file when you pass STDOUT or STDERR as a descriptor. A short repro, the one-line fix and a test that catches it.

15s
Node.js spawn stdout Gets Truncated: Compared 6 Fixes, Only the File Trick Works
📰
0Read More

Node.js spawn stdout Gets Truncated: Compared 6 Fixes, Only the File Trick Works

DEV Community·Recca Tsai·6 months ago
#FURXr1xY
#why#node#stdio#file#pipe

When spawning a high-output CLI in Node.js, the last few KB vanish on process.exit(). After comparing 6 solutions, the only reliable cross-platform stdlib fix is piping the child stdout fd to a file.

15s
IPC Pipe vs Unix Socket for a Resident Daemon in Tauri — What I Learned
📰
0Read More

IPC Pipe vs Unix Socket for a Resident Daemon in Tauri — What I Learned

DEV Community·hiyoyo·6 months ago
#FWgi5RI9
#option#rust#tauri#performance#socket

All tests run on an 8-year-old MacBook Air. When I built Ghost Engine — a resident Swift daemon that...

15s