[mythtv-commits] Re: Ticket #514: mythbackend dies when X server
shuts down
MythTV
mythtv at cvs.mythtv.org
Mon Oct 24 09:03:05 EDT 2005
#514: mythbackend dies when X server shuts down
-------------------------------------+--------------------------------------
Reporter: chrisb at crustynet.org.uk | Owner: ijr
Type: defect | Status: reopened
Priority: major | Milestone:
Component: mythtv | Version:
Severity: medium | Resolution:
-------------------------------------+--------------------------------------
Changes (by anonymous):
* resolution: invalid =>
* status: closed => reopened
Comment:
This is a bug.
mythbackend is a daemon. By definition, a daemon should detach from it's
controlling terminal and start it's own process group. This is normally
done with the daemon(3) call from glibc. One of the things that daemon(3)
does is call setsid(2), which causes the mythbackend process to "reparent"
to the init process.
Anyway, it's not this that is causing mythbackend to shutdown. If you read
the error message I quoted, it is because of ICE (which is part of DCOP)
encountering an IO error when the X server shuts down.
Currently, my workaround for this bug is to unset the DISPLAY variable in
the init.d script for mythbackend. However, this bug should be fixed
properly. I don't think mythbackend should be trying to do anything with
the X server. It's not an X client, after all - it's a daemon.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/514>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list