From 9db331185aad1d1758d6f4b9ac7f98032d5add84 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 4 Jun 2018 14:26:42 +0900 Subject: [PATCH] Add an exception handling about debug mode If the launch request is for debugging an application, the launchpad doesn't prepare the app socket. Some debugger closes all fds before executing the application. Change-Id: I3342e8270a4ff552139d6da51b3132ec1a957b6a Signed-off-by: Hwankyu Jhun --- src/launchpad.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/launchpad.c b/src/launchpad.c index bc49310..ebc4d29 100755 --- a/src/launchpad.c +++ b/src/launchpad.c @@ -854,9 +854,11 @@ static int __prepare_exec(const char *appid, const char *app_path, if (ret < 0) return PAD_ERR_FAILED; - ret = _prepare_app_socket(); - if (ret < 0) - return PAD_ERR_FAILED; + if (bundle_get_type(kb, AUL_K_SDK) == BUNDLE_TYPE_NONE) { + ret = _prepare_app_socket(); + if (ret < 0) + return PAD_ERR_FAILED; + } return 0; } -- 2.7.4