Skip to content

Commit

Permalink
Please let this be all. More Windows fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Beirdo committed Oct 1, 2012
1 parent f1d851b commit 1a66ff9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mythtv/libs/libmythbase/signalhandling.cpp
Expand Up @@ -204,16 +204,20 @@ void SignalHandler::signalHandler(int signum, siginfo_t *info, void *context)
{
SignalInfo signalInfo;

#ifdef _WIN32
info = NULL;
#endif

(void)context;
signalInfo.signum = signum;
#ifdef _WIN32
(void)info;
signalInfo.code = 0;
signalInfo.pid = 0;
signalInfo.uid = 0;
signalInfo.value = 0;
#else
signalInfo.code = (info ? info->si_code : 0);
signalInfo.pid = (info ? (int)info->si_pid : 0);
signalInfo.uid = (info ? (int)info->si_uid : 0);
signalInfo.value = (info ? *(uint64_t *)&info->si_value : 0);
#endif

// Keep trying if there's no room to write, but stop on error (-1)
int index = 0;
Expand Down

0 comments on commit 1a66ff9

Please sign in to comment.