*** empty log message ***

svn path=/trunk/boinc/; revision=6043
This commit is contained in:
David Anderson 2005-05-05 18:59:55 +00:00
parent baada9f8a3
commit 27aacefb20
3 changed files with 26 additions and 4 deletions

View File

@ -6154,3 +6154,15 @@ David 5 May 2005
client/
client_state.C
scheduler_op.C
David 5 May 2005
- fixes for FreeBSD from J.R. Oldroyd
- BOINC Manager:
Don't use BOINC_DIAG_REDIRECTSTDERR and BOINC_DIAG_REDIRECTSTDOUT
on non-Windows
IsBOINCCoreRunning(): close RPC connection
clientgui/
BOINCGUIApp.cpp
lib/
network.C

View File

@ -110,8 +110,10 @@ bool CBOINCGUIApp::OnInit() {
BOINC_DIAG_DUMPCALLSTACKENABLED |
BOINC_DIAG_HEAPCHECKENABLED |
BOINC_DIAG_MEMORYLEAKCHECKENABLED |
#ifdef _WIN32
BOINC_DIAG_REDIRECTSTDERR |
BOINC_DIAG_REDIRECTSTDOUT |
#endif
BOINC_DIAG_TRACETOSTDOUT;
diagnostics_init(
@ -334,12 +336,15 @@ void CBOINCGUIApp::InitSupportedLanguages() {
bool CBOINCGUIApp::IsBOINCCoreRunning() {
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCGUIApp::IsBOINCCoreRunning - Function Begin"));
bool retval;
int retval;
bool running;
RPC_CLIENT rpc;
retval = (0 == rpc.init( wxT("localhost") ) );
retval = rpc.init("localhost", false); // synchronous is OK since local
running = (retval == 0);
rpc.close();
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCGUIApp::IsBOINCCoreRunning - Function End"));
return retval;
return running;
}

View File

@ -166,8 +166,13 @@ int get_socket_error(int fd) {
int n;
#ifdef WIN32
getsockopt(fd, SOL_SOCKET, SO_ERROR, (char *)&n, &intsize);
#elif __APPLE__
#elif defined(__APPLE__)
getsockopt(fd, SOL_SOCKET, SO_ERROR, &n, (int *)&intsize);
#elif defined(__FreeBSD__)
// workaround for FreeBSD. I don't understand this.
struct sockaddr_in sin;
socklen_t sinsz = sizeof(sin);
n = getpeername(fd, (struct sockaddr *)&sin, &sinsz);
#else
getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)&n, &intsize);
#endif