platform/core/appfw/launchpad.git
23 months agoRelease version 0.20.0 35/284235/1
Hwankyu Jhun [Mon, 14 Nov 2022 05:40:02 +0000 (05:40 +0000)]
Release version 0.20.0

Changes:
 - Create a child process in the worker thread

Change-Id: I411e8cc77ff26bb7f733c0d0c974312eb2acba57
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
23 months agoCreate a child process in the worker thread 63/283963/5
Hwankyu Jhun [Tue, 8 Nov 2022 01:48:16 +0000 (01:48 +0000)]
Create a child process in the worker thread

To avoid blocking main thread of launchpad-process-pool, the worker thread
creates a child process.

Change-Id: I6cd499a6d6a5fc3d0d2d81f2256e299f4067eb68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.19.3 28/283128/1 accepted/tizen/unified/20221104.082311
Hwankyu Jhun [Tue, 18 Oct 2022 10:36:39 +0000 (10:36 +0000)]
Release version 0.19.3

Changes:
 - Add an environmant variable related to ASAN

Change-Id: Ib84a6127f8d2a0a041a07cb7b371a2a36f3b844b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd an environmant variable related to ASAN 23/283123/1
Hwankyu Jhun [Tue, 18 Oct 2022 09:22:59 +0000 (09:22 +0000)]
Add an environmant variable related to ASAN

While getting a launch request for ASAN debugging, the launchpad adds
'TIZEN_ASAN_ACTIVATION' environment variable for activating ASAN.

Related:
 - https://review.tizen.org/gerrit/#/c/platform/upstream/gcc/+/283119/

Change-Id: I5d6fdf47d872de4f7985e074ada550368ebaced3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.19.2 86/283086/1
Changgyu Choi [Tue, 18 Oct 2022 02:26:24 +0000 (11:26 +0900)]
Release version 0.19.2

Changes:
 - Fix static analysis issues

Change-Id: I5fd2f82cf99c3ab8360780f98db913f81496f378
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix static analysis issues 29/283029/1
Changgyu Choi [Mon, 17 Oct 2022 03:12:25 +0000 (12:12 +0900)]
Fix static analysis issues

Change-Id: I6ef67f0f1b6423756955a94370fbcee51b1d81ee
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.19.1 62/281462/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.061016 accepted/tizen/7.0/unified/hotfix/20221116.105017 accepted/tizen/unified/20220920.050145 tizen_7.0_m2_release
Hwankyu Jhun [Mon, 19 Sep 2022 07:57:12 +0000 (07:57 +0000)]
Release version 0.19.1

Changes:
 - Fix resource leak

Change-Id: Idc73789582823bab17303215ca0d10b31b59bc3b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix resource leak 59/281459/1
Hwankyu Jhun [Mon, 19 Sep 2022 07:45:29 +0000 (07:45 +0000)]
Fix resource leak

The allocated memory has to be released. The xmlGetProp() returns the
allocated value. It should be released using xmlFree().

Change-Id: I031d76c587ad8dcab9141c585d732893d916eea9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.19.0 76/279276/2 accepted/tizen/unified/20220805.131913 submit/tizen/20220804.142848 submit/tizen/20220805.012935
Changgyu Choi [Fri, 5 Aug 2022 01:27:17 +0000 (10:27 +0900)]
Release version 0.19.0

Changes:
 - Implement launch of light user application

Change-Id: I090af4f7c74ff05a8fee7d1ea82df059a8a42dc7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoImplement launch of light user application 38/278338/10
Ilho Kim [Tue, 19 Jul 2022 06:43:17 +0000 (15:43 +0900)]
Implement launch of light user application

Change-Id: I9ab41fe9e0dca4e2b40051a741182067a20f99f9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.18.14 89/278689/1 accepted/tizen/unified/20220726.012248 submit/tizen/20220725.062229
Hwankyu Jhun [Mon, 25 Jul 2022 06:17:42 +0000 (15:17 +0900)]
Release version 0.18.14

Changes:
 - Send and receive candidate process ID

Change-Id: I619a48d0f237aebf3f2a3511c533ffb9fcd95919
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoSend and receive candidate process ID 83/278683/3
Hwankyu Jhun [Mon, 25 Jul 2022 05:36:00 +0000 (14:36 +0900)]
Send and receive candidate process ID

The hydra loader sends a launched candidate process ID to
launchpad-process-pool. When disposing the candidate process,
launchpad-process-pool checks whether the candidate process is running
or not to send SIGKILL signal. In the provious implementation, there is
a problem that the candidate process was not terminated while it's
executing.

Change-Id: I88fe989f80007d9c5b6f4bb381c5ad2d863be4e8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.18.13 67/278667/1 submit/tizen/20220725.024329
Changgyu Choi [Mon, 25 Jul 2022 02:41:06 +0000 (11:41 +0900)]
Release version 0.18.13

Changes:
 - Revert "Add cpu priority inheritance"

Change-Id: I70f6b48c13e553bba15b980cff572b5e46fc98b2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRevert "Add cpu priority inheritance" 58/278658/2
Changgyu Choi [Mon, 25 Jul 2022 01:45:27 +0000 (10:45 +0900)]
Revert "Add cpu priority inheritance"

This reverts commit b67f9e7e9a31a6b2ff4f2867d2c63edd9fda7209.

Change-Id: I80317085c0a8b60ce463ab855313716f27d8709f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.18.12 57/277857/1 submit/tizen/20220714.070033 submit/tizen/20220724.222434
Hwankyu Jhun [Thu, 14 Jul 2022 06:40:18 +0000 (15:40 +0900)]
Release version 0.18.12

Changes:
 - Add a new environemtn variable

Change-Id: I83a4a7a3b151bea2910f59c69f184637b1219c84
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd a new environemtn variable 33/277833/1
Hwankyu Jhun [Thu, 14 Jul 2022 04:23:49 +0000 (13:23 +0900)]
Add a new environemtn variable

Before executing an application, the process sets GCOV_PREFIX="/tmp" for
code coverage measurement.

Change-Id: Ifbdc216f7fb507a522ad4cbe631c2b81af3bb5c1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.18.11 93/277293/1 accepted/tizen/unified/20220705.220829 submit/tizen/20220705.003005 submit/tizen/20220705.003032
Hwankyu Jhun [Mon, 4 Jul 2022 23:44:32 +0000 (08:44 +0900)]
Release version 0.18.11

Changes:
 - Apply type converstions

Change-Id: I46ea4236057c4f137a7323ecdbc7c21121151300
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoApply type converstions 82/277282/2
Hwankyu Jhun [Mon, 4 Jul 2022 10:10:30 +0000 (19:10 +0900)]
Apply type converstions

The dest_process parameter of resource_register_cpu_inheritance_destination() and
resource_unregister_cpu_inheritance_destination() was char* type.
This patch adds forced type conversions to convert to char* type.

Change-Id: I2dfa722e3a1397e19e483e0e3d5950c3758599ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.18.10 28/277128/1 accepted/tizen/unified/20220703.214202 submit/tizen/20220701.041209
Changgyu Choi [Fri, 1 Jul 2022 04:10:36 +0000 (13:10 +0900)]
Release version 0.18.10

Changes:
 - Add cpu priority inheritance

Change-Id: Ie3ad6cfa3bd10cb1051bea4d9d9e319aca4fb004
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoAdd cpu priority inheritance 22/277022/8
Changgyu Choi [Wed, 29 Jun 2022 07:26:30 +0000 (16:26 +0900)]
Add cpu priority inheritance

To improve performance in case of IPC call,
the cpu priority is inherited from caller process.
When calling register_cpu_inheritance_destination(),
it can be inherited cpu priority from caller.

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/amd/+/276948

Change-Id: Ie4ed308f299efc0f76db465d3b824adeec6c1555
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.18.9 67/273867/1 accepted/tizen/unified/20220418.141249 submit/tizen/20220415.005359
Hwankyu Jhun [Fri, 15 Apr 2022 00:47:03 +0000 (09:47 +0900)]
Release version 0.18.9

Changes:
 - [UI Thread] Set a new environment variable

Change-Id: I9307d945ac92ac23dcb10438a1002a42d098b591
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years ago[UI Thread] Set a new environment variable 65/273865/2
Hwankyu Jhun [Thu, 14 Apr 2022 23:20:36 +0000 (08:20 +0900)]
[UI Thread] Set a new environment variable

To prevent race condition about calling setenv(), the launchpad sets
"TIZEN_GLIB_CONTEXT" environment variable.

Change-Id: I161ef17f785556b39e74d1bf4ee277d2c36e7874
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.18.8 17/272617/1 accepted/tizen_6.5_unified accepted/tizen/6.5/unified/20220323.134138 accepted/tizen/unified/20220322.134043 submit/tizen/20220322.015346 submit/tizen_6.5/20220322.025122
Hwankyu Jhun [Tue, 22 Mar 2022 00:15:39 +0000 (09:15 +0900)]
Release version 0.18.8

Changes:
 - Remove executable file check

Change-Id: I8f333a398b043479d993285a262ca9c0776ad929
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRemove executable file check 16/272616/1
Hwankyu Jhun [Mon, 21 Mar 2022 22:55:04 +0000 (07:55 +0900)]
Remove executable file check

Checking the executable file can be slow when the system is boot up.
It causes performance degrdation of AMD. This patch is to prevent
performance degradation.

Change-Id: I0133598ce003e49b1d238266600b5fc415df3eeb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.18.7 15/272515/1 accepted/tizen/unified/20220322.082753 submit/tizen/20220321.003517
Changgyu Choi [Fri, 18 Mar 2022 06:39:22 +0000 (15:39 +0900)]
Release version 0.18.7

Changes:
 - Add logs for debugging

Change-Id: I35a39180bd86fe4c1c324bf5258d5411e6b9fa06
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoAdd logs for debugging 90/272490/11
Changgyu Choi [Fri, 18 Mar 2022 00:50:48 +0000 (09:50 +0900)]
Add logs for debugging

Change-Id: Ie8e96eea8d08aa6b4024045c4c60caaa3f353093
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.18.6 31/271631/1 accepted/tizen/6.5/unified/20220225.151944 accepted/tizen/unified/20220225.151911 submit/tizen/20220224.010450 submit/tizen_6.5/20220224.010325
Changgyu Choi [Thu, 24 Feb 2022 00:56:54 +0000 (09:56 +0900)]
Release version 0.18.6

Changes:
 - Fix static analysis issue

Change-Id: I51bccb92f6af801441171d771217b30b605eae81
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix static analysis issue 30/271630/2
Changgyu Choi [Thu, 24 Feb 2022 00:43:09 +0000 (09:43 +0900)]
Fix static analysis issue

Changes:
 - Adds checking that the variable is nullptr.

Change-Id: I632547066e972cf99d7f2c99b2464b39029e7b24
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.18.5 21/270521/1 accepted/tizen/6.5/unified/20220207.045122 accepted/tizen/unified/20220206.211920 submit/tizen/20220204.053219 submit/tizen_6.5/20220204.053240
Hwankyu Jhun [Fri, 4 Feb 2022 05:31:35 +0000 (14:31 +0900)]
Release version 0.18.5

Changes:
 - Change mount namespace

Change-Id: Icc5ef1d3cb40c612436b5e6ef08ee629b37f755d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoChange mount namespace 20/270520/2
Hwankyu Jhun [Fri, 4 Feb 2022 04:56:38 +0000 (13:56 +0900)]
Change mount namespace

When executing the debug tool process, the child process has to change
the mount namespace to the mount namespace of the target process if the
option is 'attach'.

Change-Id: I9db343a70f614d18d291018ecab04a4db2b8fec0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.18.4 63/266863/1 accepted/tizen/6.5/unified/20211123.213508 accepted/tizen/unified/20211123.015942 submit/tizen/20211122.001731 submit/tizen_6.5/20211122.001803
Hwankyu Jhun [Mon, 22 Nov 2021 00:10:56 +0000 (09:10 +0900)]
Release version 0.18.4

Changes:
 - Revert "Fix id file creation"
 - Handle a new command

Change-Id: Ide571a8478c4f272642ff83b7882814b516ef413
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoHandle a new command 20/266820/1
Hwankyu Jhun [Fri, 19 Nov 2021 04:09:28 +0000 (13:09 +0900)]
Handle a new command

To monitor the state of the launchpad, AMD will connect to the launchpad
and maintain the connection.

Change-Id: Ib8a9eaf30b4beaa1e40a0c46a7752c4b5e4ea86f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRevert "Fix id file creation" 07/266407/1
Hwankyu Jhun [Thu, 11 Nov 2021 14:54:47 +0000 (23:54 +0900)]
Revert "Fix id file creation"

This reverts commit a8f63eec9bca4a3a58699294b4c6216d5240c1d0.

Change-Id: I27d0dc189801f6665d08ac49b70c532d90d822c6

2 years agoRelease version 0.18.3 76/266376/1 submit/tizen/20211111.065648 submit/tizen_6.5/20211111.065740
Hwankyu Jhun [Thu, 11 Nov 2021 06:55:26 +0000 (15:55 +0900)]
Release version 0.18.3

Changes:
 - Fix id file creation

Change-Id: I0b553892f17f4db6ba5006c4ffcc67774b8df075
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix id file creation 59/266359/3
Hwankyu Jhun [Thu, 11 Nov 2021 03:49:01 +0000 (12:49 +0900)]
Fix id file creation

The child process writes zero to the id file. When calling the aul_initialize(),
the process will write one to the id file.
This is to check the socket status of the running application.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/launchpad/+/266359/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/266360/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/266361/

Change-Id: I0abe08650b60d4e97f039ffaa16a20c299054110
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.18.2 76/265976/1 accepted/tizen/6.5/unified/20211109.041705 accepted/tizen/unified/20211104.123539 accepted/tizen/unified/20211109.042849 submit/tizen/20211103.040120 submit/tizen/20211104.074108 submit/tizen/20211104.225435 submit/tizen/20211105.011855 submit/tizen/20211107.232151 submit/tizen/20211107.232243 submit/tizen_6.5/20211105.053806
Hwankyu Jhun [Wed, 3 Nov 2021 03:58:54 +0000 (12:58 +0900)]
Release version 0.18.2

Changes:
 - Adjust sending startup signal

Change-Id: I19da8d0663214b98cdc7163a0e40ae71e50c8044
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoAdjust sending startup signal 25/265825/4
Hwankyu Jhun [Fri, 29 Oct 2021 07:56:39 +0000 (16:56 +0900)]
Adjust sending startup signal

After creating the app socket, the startup signal will be sent.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/265335/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/265818/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/launchpad/+/265825/

Change-Id: Ib06bdf45b51b44bc9225b40333bb0b30968951b4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.18.1 20/265820/1 accepted/tizen/unified/20211101.140228 submit/tizen/20211029.070425 submit/tizen/20211101.102058
Hwankyu Jhun [Fri, 29 Oct 2021 07:02:00 +0000 (16:02 +0900)]
Release version 0.18.1

Changes:
 - Set child subreaper attribute

Change-Id: I04a882e3f3d4a9c3611bf3035be10f6e3316d351
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoSet child subreaper attribute 15/265815/2
Hwankyu Jhun [Fri, 29 Oct 2021 06:09:19 +0000 (15:09 +0900)]
Set child subreaper attribute

When the hydra loader is terminated, the parent process ID of the
application that is launched using the loader process is created by
the hydra loader is changed to the launchpad-process-pool.
Currently, the hydra loader is terminated, the application is always running
as zombie process. After this patch is applied, even though the hydra load
is terminated, the launchpad-process-pool gets the SIGCHLD signal when
the application is terminated.

Change-Id: I5d1d05e25c6a0803e925c857106367cc74382631
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.18.0 45/265645/2 submit/tizen/20211028.054000
Changgyu Choi [Tue, 26 Oct 2021 04:20:03 +0000 (13:20 +0900)]
Release version 0.18.0

Changes:
 - Add prelaunch callback

Change-Id: I324c850ef186a5c96c7e5115816c62fd6e79eb7c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoAdd prelaunch callback 10/265610/4
Changgyu Choi [Mon, 25 Oct 2021 06:55:09 +0000 (15:55 +0900)]
Add prelaunch callback

prelaunch callback is called to before being called security_manager_prepare_app()

Change-Id: Ib658ed698966dd4a7cd063bf3316e6f37dacca18
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoRelease version 0.17.10 36/263636/1 accepted/tizen/6.5/unified/20211028.095844 accepted/tizen/unified/20210909.002342 submit/tizen/20210907.220606 submit/tizen/20210907.220620 submit/tizen_6.5/20211028.162101 tizen_6.5.m2_release
Hwankyu Jhun [Tue, 7 Sep 2021 07:50:44 +0000 (16:50 +0900)]
Release version 0.17.10

Changes:
 - Fix executable file check

Change-Id: Id916b6d13de37f3ec054706aa9fa49bcf29a9fa1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix executable file check 36/263536/1
Hwankyu Jhun [Mon, 6 Sep 2021 05:46:47 +0000 (14:46 +0900)]
Fix executable file check

Before checking the executable file, the launchpad-process-pool checks
whether the type of the application is "capp" or "c++app".
Other applications are executec using the launcher. (e.g. wrt)

Change-Id: Ib6a1931dd43d838524e4b907ac4965846fa3c991
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.17.9 81/262481/1 accepted/tizen/unified/20210813.005936 submit/tizen/20210811.235113 submit/tizen/20210812.075926
Hwankyu Jhun [Wed, 11 Aug 2021 23:46:24 +0000 (08:46 +0900)]
Release version 0.17.9

Changes:
 - Fix memory monitor function

Change-Id: I2d54c93369ea098d86826db1725d0129000fc5e3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix memory monitor function 80/262480/1
Hwankyu Jhun [Wed, 11 Aug 2021 22:53:17 +0000 (07:53 +0900)]
Fix memory monitor function

If the threshold is 100, the memory_monitor_is_low_memory() function
always returns false. The value of the threshold that is 100 means the
feature is disabled.

Change-Id: I5c72297ca11dfa3d70c39c412a5bee1bc3f76790
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.17.8 34/262234/1 accepted/tizen/unified/20210806.122131 submit/tizen/20210805.003142
Hwankyu Jhun [Thu, 5 Aug 2021 00:22:34 +0000 (09:22 +0900)]
Release version 0.17.8

Changes:
 - Check threshold in memory monitor

Change-Id: I3d4857b328cdf2feb47ca8cacfb6b3b655210e61
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoCheck threshold in memory monitor 33/262233/1
Hwankyu Jhun [Wed, 4 Aug 2021 23:42:24 +0000 (08:42 +0900)]
Check threshold in memory monitor

If the threshold is equal to 100, the launchpad-process-pool doesn't
start monitoring the system memory.

Change-Id: If8b3224fabfbf3e871a73287fddd1be41880a4d7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.17.7 78/261878/1 accepted/tizen/unified/20210729.122647 submit/tizen/20210728.064032 submit/tizen/20210728.220216
Hwankyu Jhun [Wed, 28 Jul 2021 06:31:12 +0000 (15:31 +0900)]
Release version 0.17.7

Changes:
 - Print error logs

Change-Id: Ib67d9d294f39666aa2cdd0defc2229c86c91b491
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoPrint error logs 55/261855/1
Hwankyu Jhun [Tue, 27 Jul 2021 23:37:55 +0000 (08:37 +0900)]
Print error logs

If calling the getcwd() is failed, the loader process prints an error log.

Change-Id: Ic34bcffdc7aa5facf9b52ef06406506072a00850
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.17.6 25/261425/1 accepted/tizen/unified/20210719.124542 submit/tizen/20210718.231655
Hwankyu Jhun [Sun, 18 Jul 2021 23:16:11 +0000 (08:16 +0900)]
Release version 0.17.6

Changes:
 - Get LAUNCHPAD_LISTEN_FD variable from the environment
 - Fix static anlaysis issue

Change-Id: I68f0dd0c0eb1c3f754c44b70dc3b778936b80a24
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix static anlaysis issue 22/261422/1
Hwankyu Jhun [Sun, 18 Jul 2021 22:55:18 +0000 (07:55 +0900)]
Fix static anlaysis issue

- Fix buffer size to remove using large stack

Change-Id: I2ad8f73c1ec06dfdfb37286887dd3528f86a8a64
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoGet LAUNCHPAD_LISTEN_FD variable from the environment 13/261413/1
Hwankyu Jhun [Fri, 16 Jul 2021 11:16:46 +0000 (20:16 +0900)]
Get LAUNCHPAD_LISTEN_FD variable from the environment

Currently, the file descriptior is not generated sequentially in some devices.
The launchpad-process-pool is not always started by systemd. In this
case, the program sets LAUNCHPAD_LISTEN_FD variable to the environment.
After this patch is applied, the launchpad-process-pool tries to get the
fd from the environment if calling sd_listen_fd() is failed.

Change-Id: Ice99b52282b9ed7322acc185c150b6c8550d0d8d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.17.5 17/260917/1 accepted/tizen/unified/20210707.130503 submit/tizen/20210706.225627
Hwankyu Jhun [Tue, 6 Jul 2021 22:43:41 +0000 (07:43 +0900)]
Release version 0.17.5

Changes:
 - Remove dlog fd check

Change-Id: I08a5a85c7ec425f3f20c702af123b6998f602e16
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRemove dlog fd check 65/260865/2
Hwankyu Jhun [Tue, 6 Jul 2021 04:57:25 +0000 (13:57 +0900)]
Remove dlog fd check

Even if stdout fd is already redirected to dlog fd, calling dlog_connted_to()
is needed to set the log tag. This patch removes calling dlog_is_log_fd().

Change-Id: If9fe1f28a68cfa62f02927945136f67581cd0f17
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.17.4 58/260858/1 accepted/tizen/unified/20210707.070832 submit/tizen/20210705.230939
Hwankyu Jhun [Mon, 5 Jul 2021 23:08:44 +0000 (08:08 +0900)]
Release version 0.17.4

Changes:
 - Check stdout fds redirection

Change-Id: Iac8c777d3d58e3d658cfc770fc300e041ba1cb69
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoCheck stdout fds redirection 48/260648/4
Hwankyu Jhun [Wed, 30 Jun 2021 07:25:22 +0000 (16:25 +0900)]
Check stdout fds redirection

Before executing an application, the child process checks whether the
stdout and stderr fds are redirected or not. If it's not, the child
process tries to redirect stdout and stderr to dlog fd.
And then, the child process tries to redirect stdout and stderr to
journal stream fd if it's failed.

Change-Id: I0abfbe06a1b1b615b65a6245243c07deaa155303
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.17.3 67/260267/1 accepted/tizen/unified/20210624.131836 submit/tizen/20210623.014632
Hwankyu Jhun [Wed, 23 Jun 2021 01:27:05 +0000 (10:27 +0900)]
Release version 0.17.3

Changes:
 - Fix mount res dir
 - Fix memory management

Change-Id: I4194ec97ce42bc1de6cd07c24ec70d622ed2dde6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix memory management 64/260264/1
Hwankyu Jhun [Wed, 23 Jun 2021 01:08:01 +0000 (10:08 +0900)]
Fix memory management

To get available memory, launchpad kills running hydra loaders.

Change-Id: I3fb30cecbd60a3c2a7c3226bea84dfdc6f1f49e6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix mount res dir 85/259685/2
Sangyoon Jang [Fri, 11 Jun 2021 05:07:02 +0000 (14:07 +0900)]
Fix mount res dir

upperdir, workdir is not necessary for read-only mount.

Change-Id: I8849b7601541d415e65ffce025f0a7f2a505792e
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoRelease version 0.17.2 77/256977/1 accepted/tizen/unified/20210416.143434 submit/tizen/20210416.020149 submit/tizen/20210416.093756 submit/tizen/20210419.103606
Hwankyu Jhun [Fri, 16 Apr 2021 01:58:06 +0000 (10:58 +0900)]
Release version 0.17.2

Changes:
 - Revert "Redirect stdout to dlog"

Change-Id: Iefd53287eac8bd87f30ed4b4a46e3a5486ed9608
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoMerge "Revert "Redirect stdout to dlog"" into tizen
HwanKyu Jhun [Fri, 16 Apr 2021 01:57:48 +0000 (01:57 +0000)]
Merge "Revert "Redirect stdout to dlog"" into tizen

3 years agoRevert "Redirect stdout to dlog" 94/256394/1
Changgyu Choi [Fri, 2 Apr 2021 01:38:27 +0000 (10:38 +0900)]
Revert "Redirect stdout to dlog"

This reverts commit fc56cf98b0757f132574535d6017b14f808bd807.

Change-Id: I0f144d1f16b05b43994b4e30b3adf3e7848cade7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoRelease version 0.17.1 06/256306/1 accepted/tizen/unified/20210401.110040 submit/tizen/20210401.045936
Hwankyu Jhun [Thu, 1 Apr 2021 04:51:12 +0000 (13:51 +0900)]
Release version 0.17.1

Changes:
 - Remove unnecessary function call

Change-Id: I78bba54fcf11b9dc967bde155e81408533c04bed
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRemove unnecessary function call 01/256301/1
Hwankyu Jhun [Thu, 1 Apr 2021 04:26:53 +0000 (13:26 +0900)]
Remove unnecessary function call

After calling execve(), the previous unbuffered setting of stdout is disabled.

Change-Id: If53d87d1aeb1c600ea1605e003160c870f201710
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.17.0 88/256288/2 submit/tizen/20210401.034721
Hwankyu Jhun [Thu, 1 Apr 2021 02:58:10 +0000 (11:58 +0900)]
Release version 0.17.0

Changes:
 - Implement res control feature
 - Fix logs
 - Redirect stdout to dlog

Change-Id: Icf5441a1661f05296df2edcb60c76e64c75bd0bc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRedirect stdout to dlog 42/256142/8
Hwankyu Jhun [Tue, 30 Mar 2021 05:19:24 +0000 (14:19 +0900)]
Redirect stdout to dlog

Before executing an application, the child process redirects stdout &
stderr to dlog fd using connect_dlog() function.
If stdout redirection is failed, the child process tries to redirect
stdout to journal stream.

Change-Id: I356a9fbb18504933e41ab1dddf67b65ddacc47db
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix logs 45/254845/1
Hwankyu Jhun [Wed, 10 Mar 2021 03:57:31 +0000 (12:57 +0900)]
Fix logs

- Changes log level to warning
- Adds logs for debugging

Change-Id: I81f2252c475a4d50f632397e032122abd436c84e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoImplement res control feature 71/251371/7
Sangyoon Jang [Wed, 13 Jan 2021 07:30:40 +0000 (16:30 +0900)]
Implement res control feature

Change-Id: Ieaa09ca6b547430a3bad33a007e90ae600c9480a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoRelease version 0.16.3 21/253521/1 accepted/tizen/unified/20210215.130819 submit/tizen/20210215.005735
Hwankyu Jhun [Mon, 15 Feb 2021 00:53:50 +0000 (09:53 +0900)]
Release version 0.16.3

Changes:
 - Check EOF exception

Change-Id: I4584b07bb3c242f1f47c381b058e5fd9d6159801
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoCheck EOF exception 17/253517/1
Hwankyu Jhun [Sun, 14 Feb 2021 22:56:18 +0000 (07:56 +0900)]
Check EOF exception

When a socket peer has performed an orderly shutdown, recv() returns 0.

Change-Id: Ie93b44f2e4682403def921e68de371aba25075a6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.16.2 16/253316/1 accepted/tizen/unified/20210209.124400 submit/tizen/20210208.231333
Hwankyu Jhun [Mon, 8 Feb 2021 23:10:08 +0000 (08:10 +0900)]
Release version 0.16.2

Changes:
 - Check installed storage before executable file check

Change-Id: I22866e4171856e4961ebc27172632108f60a8aba
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoCheck installed storage before executable file check 76/253276/1
Hwankyu Jhun [Mon, 8 Feb 2021 07:59:21 +0000 (16:59 +0900)]
Check installed storage before executable file check

If the installed storage is "external", launchpad doesn't check an
executable file.

Change-Id: Iae735ee816978006321ec376e52465fd89e4c647
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.16.1 34/251334/1 accepted/tizen/unified/20210115.004618 submit/tizen/20210113.042252
Hwankyu Jhun [Tue, 12 Jan 2021 23:32:10 +0000 (08:32 +0900)]
Release version 0.16.1

Changes:
 - Support logger activation/deactivation

Change-Id: I69f4bbc6ef2dc889f4b2b8d90e0768b16adce004
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoSupport logger activation/deactivation 68/251268/1
Hwankyu Jhun [Tue, 12 Jan 2021 06:05:23 +0000 (15:05 +0900)]
Support logger activation/deactivation

After this patch is applied, a default value of the logger is "false".
To enable the logger, the platform developer should set "Enable=1" to
the launchpad.conf file.

Change-Id: I9308964b912f79fa2261f4ac0d83de122e78cd6b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.16.0 51/250651/1 accepted/tizen/unified/20210101.123055 submit/tizen/20201231.025220 submit/tizen/20201231.042609
Hwankyu Jhun [Thu, 31 Dec 2020 00:41:14 +0000 (09:41 +0900)]
Release version 0.16.0

Changes:
 - Create port directory for component port

Change-Id: If65bd2768059a2c3800e453ad9c92729d2218310
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoCreate port directory for component port 99/250199/4
Hwankyu Jhun [Tue, 22 Dec 2020 03:49:58 +0000 (12:49 +0900)]
Create port directory for component port

Before starting launchpad-process-pool, the service file of systemd
creates a user directory for component port API.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/250187/

Change-Id: I0b835b6b006e6126158909c5347a5009bdad070b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.15.27 92/249592/1 accepted/tizen/6.0/unified/20201216.033649 accepted/tizen/unified/20201216.215919 submit/tizen/20201215.075018 submit/tizen_6.0/20201215.075046
Hwankyu Jhun [Tue, 15 Dec 2020 07:47:47 +0000 (16:47 +0900)]
Release version 0.15.27

Changes:
 - Check return value of vsnprintf()

Change-Id: If70675a4c30020fca27db06e15f4669f4005a96e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoCheck return value of vsnprintf() 69/249369/2
Hwankyu Jhun [Thu, 10 Dec 2020 23:17:19 +0000 (08:17 +0900)]
Check return value of vsnprintf()

Change-Id: I6609f8bac28ec162e23867d01766a9857153e65b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.15.26 59/248459/1 accepted/tizen/6.0/unified/20201130.044450 accepted/tizen/unified/20201130.122951 submit/tizen/20201127.005453 submit/tizen_6.0/20201127.005540
Hwankyu Jhun [Fri, 27 Nov 2020 00:44:15 +0000 (09:44 +0900)]
Release version 0.15.26

Changes:
 - Check executable file

Change-Id: Ic205fdbd383441271532388fc2263cb0cb5a333b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoCheck executable file 55/248455/1
Hwankyu Jhun [Thu, 26 Nov 2020 22:36:24 +0000 (07:36 +0900)]
Check executable file

If an app_path is not executable, launchpad rejects the launch request.

Change-Id: I2ae28b5c1852cb2d500d323fbbc2c4016f0f9720
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.15.25 84/248384/1 accepted/tizen/6.0/unified/20201126.222221 accepted/tizen/unified/20201126.233219 submit/tizen/20201126.045211 submit/tizen_6.0/20201126.045238
Hwankyu Jhun [Thu, 26 Nov 2020 04:53:12 +0000 (13:53 +0900)]
Release version 0.15.25

Changes:
 - Support logger path setting

Change-Id: I4ee727cb650dc9c93f46e928e0ba2dbd5fd22849
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoSupport logger path setting 77/248277/2
Hwankyu Jhun [Wed, 25 Nov 2020 03:44:03 +0000 (12:44 +0900)]
Support logger path setting

Currently, the logger path is hard coded. After this patch is applied,
the platform developer can change the logger path using the configuration file.

Change-Id: Icd510c6bcdfee40e4ca1e15f938b202a92aac75e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.15.24 41/247541/1 accepted/tizen/6.0/unified/20201113.014615 accepted/tizen/unified/20201113.130833 submit/tizen/20201112.031807 submit/tizen_6.0/20201112.032144
Hwankyu Jhun [Thu, 12 Nov 2020 02:47:52 +0000 (11:47 +0900)]
Release version 0.15.24

Changes:
 - Fix a bug about loader resumption

Change-Id: I8a0f7774832a0634af486669cbe52112db805cb7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoFix a bug about loader resumption 06/247506/1
Hwankyu Jhun [Wed, 11 Nov 2020 07:24:29 +0000 (16:24 +0900)]
Fix a bug about loader resumption

When the system memory is available, all paused loaders should be prepared.

Change-Id: I249b9a921fb25ed043e0086876afaf9922100d52
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.23 03/246203/1 accepted/tizen/6.0/unified/20201110.010753 accepted/tizen/unified/20201028.123842 submit/tizen/20201027.014125 submit/tizen_6.0/20201105.013641 submit/tizen_6.0/20201108.233605
Hwankyu Jhun [Tue, 27 Oct 2020 01:28:27 +0000 (10:28 +0900)]
Release version 0.15.23

Changes:
 - Fix a bug about handling OOM
 - Fix coding style

Change-Id: I0ce4b8f4931ccf8ac06ff17a09f83d3c79831250
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix coding style 39/246139/2
Changgyu Choi [Mon, 26 Oct 2020 00:54:27 +0000 (09:54 +0900)]
Fix coding style

Change-Id: I606f1009765cd0bd78afda1951f304855415043c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 years agoFix a bug about handling OOM 26/245726/1
Hwankyu Jhun [Wed, 14 Oct 2020 23:00:21 +0000 (08:00 +0900)]
Fix a bug about handling OOM

When system is out of memory and the low memory status is true,
launchpad-process-pool always tries to kill last running slot.
Even if there is no running slot, launchpad-process-pool tries that.
Because, the memory status is true. In that time, launchpad-process-pool
is deadlock state.
After this patch is applied, launchpad-process-pool tries to kill
all running slots when system is OOM. If system is not OOM,
launchpad-process-pool stops killing slots.

Change-Id: I5ff858e20e948407252f603894ffb3edf7d64b12
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.22 62/245162/1 submit/tizen/20201006.012903
Changgyu Choi [Mon, 5 Oct 2020 04:24:42 +0000 (13:24 +0900)]
Release version 0.15.22

Changes:
 - Refactor coding style

Change-Id: I62c50bc93d99a17c069415a1854e6037ededd516
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 years agoRefactor coding style 05/245005/7
Changgyu Choi [Tue, 29 Sep 2020 03:33:04 +0000 (12:33 +0900)]
Refactor coding style

 - Fix some coding style
 - Change to make_shared instead of constructor
 - Use std::move()

Change-Id: I8e2991eb98e68666cc880a5271204aaa548a41f0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 years agoRelease version 0.15.21 78/244578/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.115759 accepted/tizen/6.0/unified/hotfix/20201103.050426 accepted/tizen/unified/20200922.230450 submit/tizen/20200922.055925 submit/tizen/20200922.062045 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 tizen_6.0.m2_release
Hwankyu Jhun [Tue, 22 Sep 2020 05:48:25 +0000 (14:48 +0900)]
Release version 0.15.21

Changes:
 - Fix directory hierarchy & cmake configuration files

Change-Id: I82bae4a397bb7a02f04bae3198dff0ec872341f0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoFix directory hierarchy & cmake configuration files 08/244508/1
Hwankyu Jhun [Mon, 21 Sep 2020 06:12:23 +0000 (15:12 +0900)]
Fix directory hierarchy & cmake configuration files

CMake configuration files are changed.
Directory hierarchy is changed as below:
+-----------------------------------------------------+
| launchpad/                                          |
|   |-- cmake/                                        |
|   |-- packaging/                                    |
|   |-- src/                                          |
|         |-- app-defined-loader/                     |
|         |-- launchpad-loader/                       |
|         |-- launchpad-parser/                       |
|         |-- launchpad-process-pool/                 |
|         |-- lib/                                    |
|              |-- common/                            |
|              |-- launchpad/                         |
|              |-- launchpad-hydra/                   |
+-----------------------------------------------------+

Change-Id: I1e8c0416c46a61bb749855309d141dd422fd01dd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.20 84/242184/1 accepted/tizen/unified/20200825.142821 submit/tizen/20200825.002553
Hwankyu Jhun [Tue, 25 Aug 2020 00:15:16 +0000 (09:15 +0900)]
Release version 0.15.20

Changes:
 - Adjust coding style
 - Add privilege level check for plugin parser
 - Separate default loader

Change-Id: Iaf49ee02707a0aeb69b49908d15978fd7095194c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoSeparate default loader 80/242180/1
Hwankyu Jhun [Mon, 24 Aug 2020 22:51:02 +0000 (07:51 +0900)]
Separate default loader

In 64bit environment(Tizen 64bit IoT), default_arch64.loader.in will be installed
to reduce memory usage.

Change-Id: Ie1201593968541655736cbca4085818dfb982fd1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoAdd privilege level check for plugin parser 01/241401/1
Hwankyu Jhun [Thu, 20 Aug 2020 00:53:06 +0000 (09:53 +0900)]
Add privilege level check for plugin parser

App-defined loader feature is only for platform developers.

Change-Id: Icbb87b3835bf3e4b866aeb9f8e66896256bc9e71
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoAdjust coding style 99/241399/1
Hwankyu Jhun [Thu, 20 Aug 2020 00:33:21 +0000 (09:33 +0900)]
Adjust coding style

Change-Id: I7848355cc6498aad5c243c2d99665abca082366d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.19 30/241330/1 accepted/tizen/unified/20200820.034801 submit/tizen/20200819.085923
Hwankyu Jhun [Wed, 19 Aug 2020 07:46:17 +0000 (16:46 +0900)]
Release version 0.15.19

Changes:
 - Add hwc logs for performance check

Change-Id: I212357fc657369556622a76f898a3699218c0a28
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoAdd hwc logs for performance check 25/241325/1
Hwankyu Jhun [Wed, 19 Aug 2020 06:59:37 +0000 (15:59 +0900)]
Add hwc logs for performance check

Change-Id: I77dcd11e86967cead7b6199812dca6ae8cdb872d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.18 01/241301/1 submit/tizen/20200819.053907
Hwankyu Jhun [Wed, 19 Aug 2020 05:35:06 +0000 (14:35 +0900)]
Release version 0.15.18

Changes:
 - Remove unused codes

Change-Id: I1122f248c13d322c622f8185d1594e86b09c45ac
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRemove unused codes 20/241020/1
Hwankyu Jhun [Fri, 14 Aug 2020 01:39:54 +0000 (10:39 +0900)]
Remove unused codes

Change-Id: I55b92d53e6824866d3cf0143c514407c924faf4e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 years agoRelease version 0.15.17 18/241018/1 submit/tizen/20200814.003838 submit/tizen/20200818.020234
Changgyu Choi [Fri, 14 Aug 2020 00:36:21 +0000 (09:36 +0900)]
Release version 0.15.17

Changes:
 - Fix memory leak
 - Fix double free

Change-Id: I28896bfe7c58075e384c4ca70d6a03a5f531f72b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>