- The child process doesn't redirect std fds when
the launch request is for debugging.
Change-Id: I10958679eda3ab88dd515bc6025074a5cffd0598
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
#include <linux/limits.h>
#include <ttrace.h>
#include <vconf.h>
-#include <libgen.h>
#include "perf.h"
#include "launchpad_common.h"
}
_close_all_fds();
- _setup_stdio(basename(argv[LOADER_ARG_PATH]));
+
if (execv(argv[LOADER_ARG_PATH], argv) < 0) { /* Flawfinder: ignore */
if (errno == EACCES) {
_E("such a file is no executable - %s",
return PAD_ERR_REJECTED;
}
+ if (bundle_get_type(kb, AUL_K_SDK) == BUNDLE_TYPE_NONE)
+ _setup_stdio(basename(app_path));
+
/* SET DUMPABLE - for coredump*/
prctl(PR_SET_DUMPABLE, 1);