[mythtv] [patch] Exit Uniqueness, a cleanup patch

Daniel Thor Kristjansson danielk at cat.nyu.edu
Thu Aug 19 16:31:08 EDT 2004

50 and -28 for the programs and libs directories.
grep exit\( programs/*/*.{cpp,c,h}
grep exit\( libs/*/*.{cpp,c,h}

It was my fond hope however that no more would be added and the number
of random exits would be reduced. Most are in places where the
programmer obviously thought: oh, this will never happen, so why bother
correctly recovering from the error. But as the program has grown they
really do happen because sometimes the files are corrupted or the
assumptions made are no longer true. It always happens with large
programs which MythTV has become, this is why we need house cleanings
once in a while.

-- Daniel

On Thu, 19 Aug 2004, Tako Schotanus wrote:

]Isaac Richards wrote:
]>On Tuesday 17 August 2004 01:29 pm, Daniel Thor Kristjansson wrote:
]>>  http://www.mrl.nyu.edu/~danielk/mythtv/exit.patch
]>>This scratches an itch for me. There are about a hundred random exit
]>>calls in the code. I made each one that represented an error condition
]>>have a unique return code*. This means you can find out where your
]>>program exited by simply looking at the return code. I did not address
]>>the ones that are removed by David George's patch, nor ones that might
]>>exist outside the lib and programs directories.
]Just nit picking but was the MAX number documented somewhere so others
]can keep any new exit codes they add unique as well? :-)
] -Tako
]mythtv-dev mailing list
]mythtv-dev at mythtv.org

More information about the mythtv-dev mailing list