79579179

Date: 2025-04-17 13:00:30
Score: 0.5
Natty:
Report link

Just so there’s no magic: you can only write data into a process’s STDIN; STDERR is always an output FD you can only read or redirect. If you want to feed your program on fd 2 (e.g. it actually does an os.read(2,…)), you must dup your stdin‐pipe onto fd 2 in the child before exec. Otherwise just use send/sendline to write to STDIN and stderr=PIPE (or a file) to capture its error‐output.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Salt