Ticket #6597: 6597-backend-win32.2.patch
File 6597-backend-win32.2.patch, 3.2 KB (added by , 15 years ago) |
---|
-
libs/libmyth/mythcontext.cpp
1547 1547 { 1548 1548 #if defined(CONFIG_DARWIN) || (__FreeBSD__) || defined(__OpenBSD__) 1549 1549 const char *command = "ps -ax | grep -i mythbackend | grep -v grep > /dev/null"; 1550 #elif defined USING_MINGW 1551 const char *command = "%systemroot%\\system32\\tasklist.exe " 1552 " | %systemroot%\\system32\\find.exe /i \"mythbackend.exe\" "; 1550 1553 #else 1551 1554 const char *command = "ps -ae | grep mythbackend > /dev/null"; 1552 1555 #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
161 161 } 162 162 else 163 163 { 164 #ifdef USING_MINGW 165 _setmode(fd, _O_BINARY); 166 #endif 164 167 buf = new char[TFW_DEF_BUF_SIZE + 1024]; 165 168 bzero(buf, TFW_DEF_BUF_SIZE + 64); 166 169 -
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);