projects
/
platform
/
core
/
appfw
/
widget-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
980b74b
)
Fix wrong value assigned for instance pid bug
author
Hyunho Kang
<hhstark.kang@samsung.com>
Thu, 26 Oct 2017 01:54:48 +0000
(10:54 +0900)
committer
Hyunho Kang
<hhstark.kang@samsung.com>
Thu, 26 Oct 2017 03:21:54 +0000
(12:21 +0900)
Change-Id: Ieed822be7fef313d3a7bcbee028ccdcb26036f0a
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
src/widget_instance.c
patch
|
blob
|
history
diff --git
a/src/widget_instance.c
b/src/widget_instance.c
index
f396a15
..
b44acd2
100644
(file)
--- a/
src/widget_instance.c
+++ b/
src/widget_instance.c
@@
-402,7
+402,10
@@
static int __send_aul_cmd(widget_instance_h instance, const char *command, bundl
b = NULL;
}
- if (ret != instance->pid) {
+ if (ret < 0) {
+ _E("failed to launch %s (%s:%d)", instance->id, command, ret);
+ instance->pid = -1;
+ } else if (ret != instance->pid) {
_E("pid has been changed. new process detected. %s (%d to %d)",
instance->id, instance->pid, ret);
instance->pid = ret;