Even if execv() call is failed, the launchpad-loader must not call the exit().
It can cause the deadlock issue if the library does not consider caling
exit handlers immediately.
Change-Id: Ieae9da9c9a5162a4dc5da3d78460a8e02c7cdf5d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
char err_buf[1024];
fprintf(stderr, "Failed to execute a file. path: %s, errno: %d(%s)\n",
argv[0], errno, strerror_r(errno, err_buf, sizeof(err_buf)));
- exit(EXIT_FAILURE);
}
- return 0;
+ return -1;
}
int LaunchpadLoader::OnTerminate(int argc, char** argv) {