Opened 10 years ago

Closed 10 years ago

#10143 closed Developer Task (fixed)

Handle stdout and stderr of MythSystem spawned processes

Reported by: Raymond Wagner Owned by: beirdo
Priority: minor Milestone: 0.25
Component: MythTV - MythSystem Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no


If a MythSystem? instance does not specify that it wants to capture the standard output and error of a called executable, those are left to pass through to the parent's respective pipes. '--daemon' mode never fully detaches from the terminal it was run from, so any such outputs, such as those from wget called by mythfilldatabase, get passed through as well.

Change History (1)

comment:1 Changed 10 years ago by Github

Milestone: unknown0.25
Resolution: fixed
Status: newclosed

Close unused stdout/stderr on child processes

If UseStdout? and UseStderr? are not set, after forking, just close the dangling stdout and stderr file descriptor (as appropriate). This will keep the output of the child process from polluting the console of the parent process. If you actually want to capture the output, use the UseStdout? and UseStderr? flags as needed.

Closes #10143

Branch: master Changeset: 769dfae2c88ad6a79b8c9594b5fa085ac50560d8

Note: See TracTickets for help on using tickets.