#include <unistd.h>
#include <bundle_internal.h>
+#include "aul.h"
#include "aul_api.h"
-#include "aul_util.h"
-#include "aul_sock.h"
+#include "aul_error.h"
#include "aul_rpc_port.h"
-#include "aul.h"
+#include "aul_sock.h"
+#include "aul_util.h"
static bundle *__create_bundle(const char *appid, const char *port_name)
{
_E("Failed to send request(%d:%s)",
RPC_PORT_PREPARE_STUB, appid);
bundle_free(b);
- return r;
+ return aul_error_convert(r);
}
bundle_free(b);
if (fd <= 0 || fd > sysconf(_SC_OPEN_MAX)) {
_E("Failed to send socket pair creation request. err = %d", fd);
bundle_free(b);
- return fd;
+ return aul_error_convert(fd);
}
bundle_free(b);
r = aul_sock_recv_reply_sock_fd(fd, fds, 2);
if (r != 0) {
_E("Failed to receive socket fds. err = %d", r);
- return r;
+ return aul_error_convert(r);
}
return AUL_R_OK;
if (r != 0) {
_E("Failed to notify rpc finished(%d). err = %d", getpid(), r);
bundle_free(b);
- return r;
+ return aul_error_convert(r);
}
bundle_free(b);