Opened 15 years ago
Closed 15 years ago
#6830 closed defect (fixed)
mythlcdserver inherits mythfrontend's open file descriptors
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | trivial | Milestone: | 0.22 |
Component: | MythTV - General | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
This only causes real problems if mythlcdserver happens to be exec'd whilst mythfrontend has the sound card open, in which case the next time mythfrontend attempts to open the card it finds it's 'busy'.
Attached patch sets the close-on-exec flag on all open fds before mythfrontend forks.
Attachments (1)
Change History (4)
Changed 15 years ago by
Attachment: | lcd_cloexec.patch added |
---|
comment:1 Changed 15 years ago by
Milestone: | unknown → 0.22 |
---|---|
Status: | new → infoneeded_new |
Version: | unknown → head |
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | infoneeded_new → closed |
Note: See
TracTickets for help on using
tickets.
Can you try changing the system() call that starts mythlcdserver to mythsystem() and see if that fixes things for you.
IIRC mythsystem() will close all open file descriptors except stdout/stderr which would be a cleaner solution if it works.