Ticket #6597: 6597-backend-win32.3.patch
File 6597-backend-win32.3.patch, 3.2 KB (added by , 15 years ago) |
---|
-
libs/libmyth/mythcontext.cpp
1550 1550 { 1551 1551 #if CONFIG_DARWIN || (__FreeBSD__) || defined(__OpenBSD__) 1552 1552 const char *command = "ps -axc | grep -i mythbackend | grep -v grep > /dev/null"; 1553 #elif defined USING_MINGW 1554 const char *command = "%systemroot%\\system32\\tasklist.exe " 1555 " | %systemroot%\\system32\\find.exe /i \"mythbackend.exe\" "; 1553 1556 #else 1554 1557 const char *command = "ps -ae | grep mythbackend > /dev/null"; 1555 1558 #endif -
libs/libmyth/util.cpp
1118 1118 if (GetTempFileNameA(temppath, "mth", 0, tempfilename)) 1119 1119 { 1120 1120 if (dir) 1121 { 1122 // GetTempFileNameA creates the file, so delete it before mkdir 1123 unlink(tempfilename); 1121 1124 ret = mkdir(tempfilename); 1125 } 1122 1126 else 1123 1127 ret = open(tempfilename, O_CREAT | O_RDWR, S_IREAD | S_IWRITE); 1124 1128 } -
libs/libmythui/mythsystem.cpp
178 178 VERBOSE(VB_IMPORTANT, 179 179 (LOC_ERR + "WaitForSingleObject() failed because %1") 180 180 .arg(::GetLastError())); 181 DWORD exitcode = GENERIC_EXIT_OK; 182 if (!GetExitCodeProcess(pi.hProcess, &exitcode)) 183 VERBOSE(VB_IMPORTANT, (LOC_ERR + 184 "GetExitCodeProcess() failed because %1") 185 .arg(::GetLastError())); 181 186 CloseHandle(pi.hProcess); 182 187 CloseHandle(pi.hThread); 183 return GENERIC_EXIT_OK; 188 // VERBOSE(VB_IMPORTANT, cmd + QString(" returned %1").arg(exitcode)); 189 return exitcode; 184 190 } 185 191 #endif 186 192 return GENERIC_EXIT_NOT_OK; -
libs/libmythtv/ThreadedFileWriter.cpp
163 163 } 164 164 else 165 165 { 166 #ifdef USING_MINGW 167 _setmode(fd, _O_BINARY); 168 #endif 166 169 buf = new char[TFW_DEF_BUF_SIZE + 1024]; 167 170 bzero(buf, TFW_DEF_BUF_SIZE + 64); 168 171 -
libs/libmythdb/mythsocket.cpp
42 42 { 43 43 VERBOSE(VB_SOCKET, LOC + "new socket"); 44 44 if (socket > -1) 45 { 45 46 setSocket(socket); 47 #ifdef USING_MINGW 48 // Windows sockets' default buffersize is too small for streaming 49 // Could this apply to other platforms, too? 50 setSendBufferSize(kSocketBufferSize); 51 // VERBOSE(VB_SOCKET, QString("rcvbuf = %1, sndbuf=%2") 52 // .arg(receiveBufferSize()).arg(sendBufferSize())); 53 #endif 54 } 46 55 47 56 if (m_cb) 48 57 m_readyread_thread.AddToReadyRead(this);