mirror of https://github.com/BOINC/boinc.git
Mac: log_flags.state_debug prints errno when rename of client_state_next.xml to client_state.xml fails
svn path=/trunk/boinc/; revision=13128
This commit is contained in:
parent
3e340136da
commit
05debbadf4
|
@ -7135,3 +7135,10 @@ David 9 July 2007
|
|||
constraints.sql
|
||||
py/Boinc/
|
||||
setup_project.py
|
||||
|
||||
Charlie 10 July 2007
|
||||
Mac: log_flags.state_debug prints errno when rename of
|
||||
client_state_next.xml to client_state.xml fails
|
||||
|
||||
client/
|
||||
cs_statefile.C
|
||||
|
|
|
@ -31,6 +31,9 @@
|
|||
#include "file_names.h"
|
||||
#include "client_msgs.h"
|
||||
#include "client_state.h"
|
||||
#ifdef __APPLE__
|
||||
#include <cerrno>
|
||||
#endif
|
||||
|
||||
void CLIENT_STATE::set_client_state_dirty(const char* source) {
|
||||
if (log_flags.state_debug) {
|
||||
|
@ -542,8 +545,8 @@ int CLIENT_STATE::write_state_file() {
|
|||
#ifdef __APPLE__
|
||||
if (log_flags.state_debug) {
|
||||
msg_printf(0, MSG_USER_ERROR,
|
||||
"rename %s to %s returned error %d",
|
||||
STATE_FILE_NEXT, STATE_FILE_NAME, retval);
|
||||
"rename %s to %s returned error %d: %s",
|
||||
STATE_FILE_NEXT, STATE_FILE_NAME, errno, strerror(errno));
|
||||
system("ls -al /Library/Application\\ Support/BOINC\\ Data/client*.*");
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue