[mythtv-commits] Ticket #11630: Path to properly handle fd number 0 in MythSystemLegacySignalManager
MythTV
noreply at mythtv.org
Mon Jul 1 18:44:45 UTC 2013
#11630: Path to properly handle fd number 0 in MythSystemLegacySignalManager
-------------------------------------+-------------------------------------
Reporter: Gary Buhrmaster | Owner: Gary Buhrmaster
<gary.buhrmaster@…> | <gary.buhrmaster@…>
Type: Patch - Bug Fix | Status: closed
Priority: minor | Milestone: unknown
Component: MythTV - MythSystem | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
-------------------------------------+-------------------------------------
Changes (by Gary Buhrmaster <gary.buhrmaster@…>):
* owner: => Gary Buhrmaster <gary.buhrmaster@…>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"c416822518b60b725b7e564e89f4321646d89a74/mythtv"]:
{{{
#!CommitTicketReference repository="mythtv"
revision="c416822518b60b725b7e564e89f4321646d89a74"
Properly handle fd number 0 in signal manager
Visual analysis (IEAEYEBALL) detected that the
check for the file descriptor value should be
"fd >= 0" and not just "fd > 0". While a fd of
zero is commonly stdin, do the right check just
in case.
The CLOSE macro properly performs the check
for greater than or equal to zero. This
patch just does the same thing.
Fixes #11630.
Signed-off-by: Paul Harrison <pharrison at mythtv.org>
}}}
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11630#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list