Modify

Opened 6 years ago

Closed 5 years ago

#10143 closed Developer Task (fixed)

Handle stdout and stderr of MythSystem spawned processes

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

Description

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.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by Github

  • Milestone changed from unknown to 0.25
  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed The owner will remain beirdo.
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.