Backed out changeset 5373095214d9 (debugging patch for bug 924771) because it is no longer needed

This commit is contained in:
Ehsan Akhgari 2013-10-20 09:24:06 -04:00
parent 050f402290
commit 81f6c32486

View File

@ -237,15 +237,12 @@ ReceivePort::~ReceivePort() {
kern_return_t ReceivePort::WaitForMessage(MachReceiveMessage *out_message,
mach_msg_timeout_t timeout) {
if (!out_message) {
printf("WaitForMessage failed because out_message was null\n");
return KERN_INVALID_ARGUMENT;
}
// return any error condition encountered in constructor
if (init_result_ != KERN_SUCCESS) {
printf("WaitForMessage failed because init_result_ was %d\n", init_result_);
if (init_result_ != KERN_SUCCESS)
return init_result_;
}
out_message->Head()->msgh_bits = 0;
out_message->Head()->msgh_local_port = port_;
@ -261,7 +258,6 @@ kern_return_t ReceivePort::WaitForMessage(MachReceiveMessage *out_message,
timeout, // timeout in ms
MACH_PORT_NULL);
printf("WaitForMessage returned %d\n", result);
return result;
}