diff options
-rw-r--r-- | src/launch_with_result.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/launch_with_result.c b/src/launch_with_result.c index 21e471ba..36ba302f 100644 --- a/src/launch_with_result.c +++ b/src/launch_with_result.c @@ -135,7 +135,6 @@ static int __call_app_result_callback(bundle *kb, int is_cancel, { app_resultcb_info_t *new_info; app_resultcb_info_t *info; - int pgid; const char *fwdpid_str; const char *num_str; int num; @@ -156,20 +155,7 @@ static int __call_app_result_callback(bundle *kb, int is_cancel, if (!info || launched_pid < 0) { _E("reject by pid - wait pid = %d, recvd pid = %d", getpid(), launched_pid); - - /* second chance - support app launched by shell script*/ - pgid = getpgid(launched_pid); - if (pgid <= 1) { - _E("Failed to get process group id. launched_pid(%d)", - launched_pid); - return -1; - } - - info = __find_resultcb(pgid, num); - if (!info) { - _E("second chance : also reject pgid - %d", pgid); - return -1; - } + return -1; } if (info->reply_cb == NULL) { |