platform/core/multimedia/mmsvc-core.git
4 years agoFix the typo 48/231448/1
YoungHun Kim [Wed, 22 Apr 2020 04:41:17 +0000 (13:41 +0900)]
Fix the typo

Change-Id: I13fa4503fa094b8094b4434b7c0c7bbe1d4557ed

4 years agoChange remove with unlink of async-signal-safe function 89/230889/10
YoungHun Kim [Thu, 16 Apr 2020 00:32:18 +0000 (09:32 +0900)]
Change remove with unlink of async-signal-safe function

Change-Id: I9851fccfb38337802ceb59bf96ff32d738a691dc

4 years agoRevise the watchdog period 18/231218/1
YoungHun Kim [Mon, 20 Apr 2020 07:41:50 +0000 (16:41 +0900)]
Revise the watchdog period

Change-Id: I13bf84b3bdb66bfca68ceeba64257d71d411f885

4 years agoUpdate the macro function 02/230702/4 accepted/tizen/unified/20200417.152704 submit/tizen/20200416.230147
YoungHun Kim [Mon, 13 Apr 2020 12:05:18 +0000 (21:05 +0900)]
Update the macro function

Change-Id: I19ef9fc6fc3032b051a802c5eabd2d11e9afae89

4 years agoMerge "Do not check the value of log_enabled which is always false now" into tizen accepted/tizen/unified/20200416.080117 submit/tizen/20200414.085837
YoungHun Kim [Tue, 14 Apr 2020 08:57:58 +0000 (08:57 +0000)]
Merge "Do not check the value of log_enabled which is always false now" into tizen

4 years agoDo not check the value of log_enabled which is always false now 01/230701/4
YoungHun Kim [Mon, 13 Apr 2020 11:51:25 +0000 (20:51 +0900)]
Do not check the value of log_enabled which is always false now

Change-Id: Ibc7a77bdf9de8858a6a59ddee6970b03daa07588

4 years agoMerge "Fix the bug of signal handler" into tizen
YoungHun Kim [Mon, 13 Apr 2020 23:19:27 +0000 (23:19 +0000)]
Merge "Fix the bug of signal handler" into tizen

4 years agoFix the bug of signal handler 90/230690/2
YoungHun Kim [Mon, 13 Apr 2020 11:03:55 +0000 (20:03 +0900)]
Fix the bug of signal handler

Change-Id: I296c472586bd30e01faec2cd4679377bcec995fd

4 years agoAlign with a fixed tab space 89/230689/1
YoungHun Kim [Mon, 13 Apr 2020 11:02:17 +0000 (20:02 +0900)]
Align with a fixed tab space

Change-Id: I8c412596867a764ad3d264f65bf6bebd96404dbd

4 years agoDo not call some debugging implementation of deadlock to reduce executing time 92/229692/3 accepted/tizen/unified/20200406.015151 submit/tizen/20200403.043453
YoungHun Kim [Fri, 3 Apr 2020 00:59:26 +0000 (09:59 +0900)]
Do not call some debugging implementation of deadlock to reduce executing time

Change-Id: I287ab842f2388e49c9da39a04546e50a573b0da9

4 years agoDisable the signal handler of client 86/229686/2
YoungHun Kim [Thu, 2 Apr 2020 23:44:20 +0000 (08:44 +0900)]
Disable the signal handler of client

Change-Id: Ib17a9424edd893f96f757d80cd627d6199354a29

4 years agofixup! Send sigabrt to debug what the server is not ready 62/229362/1 accepted/tizen/unified/20200402.155549 submit/tizen/20200331.061908 submit/tizen/20200401.045159 submit/tizen/20200401.115321
YoungHun Kim [Tue, 31 Mar 2020 09:42:41 +0000 (18:42 +0900)]
fixup! Send sigabrt to debug what the server is not ready

Change-Id: I1064839f86a9f11f86c9fb764cb4304c9b5cc3a3

4 years agoSend sigabrt to debug what the server is not ready 12/229312/1
YoungHun Kim [Tue, 31 Mar 2020 06:08:36 +0000 (15:08 +0900)]
Send sigabrt to debug what the server is not ready

Change-Id: I29b6da8faaa395381094a20ee27faa3357ca7a45

4 years agoRevert "Call shutdown command explicitly to release client resources in signal handler" 07/229307/2
YoungHun Kim [Tue, 31 Mar 2020 05:50:40 +0000 (05:50 +0000)]
Revert "Call shutdown command explicitly to release client resources in signal handler"

This reverts commit ebde40ec0da37da3239506d9812b0d181a9ef83e.

Change-Id: Ie74328f78385b3100bd8e9f18ac74a8ab8c43ca9

4 years agoFix the bug related with muse_server_is_ready() 38/228438/6 accepted/tizen/unified/20200324.101543 submit/tizen/20200323.075436 submit/tizen/20200323.230834
YoungHun Kim [Mon, 23 Mar 2020 05:58:55 +0000 (14:58 +0900)]
Fix the bug related with muse_server_is_ready()

Change-Id: I8b0474bb7cecb5422328dbf56c9de38cc22faafd

4 years agoCall shutdown command explicitly to release client resources in signal handler 42/228142/5 accepted/tizen/unified/20200321.043816 submit/tizen/20200320.024643
YoungHun Kim [Thu, 19 Mar 2020 08:05:13 +0000 (17:05 +0900)]
Call shutdown command explicitly to release client resources in signal handler

Change-Id: I8112fc27468dc15a194755e8f2020d9bc879fd88

4 years agoAdd feature for preloading plugins for GStreamer 66/227066/3 accepted/tizen/unified/20200315.214816 submit/tizen/20200311.020132 submit/tizen/20200311.030158 submit/tizen/20200312.062225
Jeongmo Yang [Mon, 9 Mar 2020 09:40:33 +0000 (18:40 +0900)]
Add feature for preloading plugins for GStreamer

- Currently, we should describe full path of plugins in mused.conf file,
  but, this patch simplifies it like below.

  As-Is:
  gstparam3=--gst-plugin-load=/usr/lib/gstreamer-1.0/libgstcoreelements.so

  To-Be:
  gstpreload=coreelements

[Version] 0.3.103
[Profile] Common
[Issue Type] Update

Change-Id: I4eab3a3e7ce65c19387d66ad773633cc5fb82f8f
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
4 years agoReturn FALSE so that source callback is not maintained when an exception occurs 22/227022/1 accepted/tizen/unified/20200309.215640 submit/tizen/20200309.061014 submit/tizen/20200309.070913
YoungHun Kim [Mon, 9 Mar 2020 05:25:26 +0000 (14:25 +0900)]
Return FALSE so that source callback is not maintained when an exception occurs

Change-Id: I5bbd839be999796435db171eac753be974e23801

4 years agoChange to preload module after gst_init call 81/226981/1 submit/tizen/20200309.023200
YoungHun Kim [Sun, 8 Mar 2020 23:09:34 +0000 (08:09 +0900)]
Change to preload module after gst_init call

Change-Id: I2dbecf832745e0e5d15d7efbf820a08aab7b220f

4 years agoUpdate coding rule of muse 00/225300/2 accepted/tizen/unified/20200224.081458 submit/tizen/20200221.062926
YoungHun Kim [Wed, 19 Feb 2020 02:25:52 +0000 (11:25 +0900)]
Update coding rule of muse

 - Set max colume value as 128
 - Set tab space as 4

Change-Id: I569b7f7e69be28c1b7bbdbaeb1af89d274e1f5f6

4 years agoAdd api name information in dispatcher deadlock 99/225299/2
YoungHun Kim [Wed, 19 Feb 2020 02:22:32 +0000 (11:22 +0900)]
Add api name information in dispatcher deadlock

Change-Id: I4e8a0e182369bdd4a42890e0b872b17445ae6afa

4 years agoMaking variables to static 20/223720/2 accepted/tizen/unified/20200204.125748 submit/tizen/20200204.004309
hj kim [Mon, 3 Feb 2020 08:05:05 +0000 (17:05 +0900)]
Making variables to static

Change-Id: I578014b01c3d50502aeca8aceb043d07c5d8c4d8

4 years agoFix SVACE (DEREF_OF_NULL.RET.STAT) issue 92/223592/2 accepted/tizen/unified/20200203.125758 submit/tizen/20200131.071650
YoungHun Kim [Fri, 31 Jan 2020 05:10:49 +0000 (14:10 +0900)]
Fix SVACE (DEREF_OF_NULL.RET.STAT) issue

Change-Id: I1cfb26c4308b296144624dfa5049a5a2e5522053

4 years agoFix build error due to iniparser upgrade 28/221928/3 accepted/tizen/unified/20200114.130752 submit/tizen/20200108.113227 submit/tizen/20200109.104649
YoungHun Kim [Wed, 8 Jan 2020 08:52:01 +0000 (17:52 +0900)]
Fix build error due to iniparser upgrade

Change-Id: I4cb53b2741448854368607f03fc8c32bcd929f8c

4 years agoMerge "Fix build error due to toolchain upgrade (gcc6->gcc9)" into tizen accepted/tizen/unified/20200113.130724 submit/tizen/20200108.010425
YoungHun Kim [Wed, 8 Jan 2020 01:03:47 +0000 (01:03 +0000)]
Merge "Fix build error due to toolchain upgrade (gcc6->gcc9)" into tizen

4 years agoFix build error due to toolchain upgrade (gcc6->gcc9) 45/221745/4
YoungHun Kim [Tue, 7 Jan 2020 08:17:19 +0000 (17:17 +0900)]
Fix build error due to toolchain upgrade (gcc6->gcc9)

 - Werror=format-truncation, -Werror=cast-function-type

Change-Id: Ieaa02eca90e455610bfea45cfb88ec436faefaec

4 years agoChange the return value to avoid g_source_remove at connection handler when muse... 26/221726/1
YoungHun Kim [Tue, 7 Jan 2020 05:15:30 +0000 (14:15 +0900)]
Change the return value to avoid g_source_remove at connection handler when muse server is not ready

Change-Id: Ide6274b8c67bb10d661ba5c609dea3b623c2ffec

4 years agoMerge "Improvement variable initialization" into tizen accepted/tizen/unified/20191204.130708 submit/tizen/20191204.005847
YoungHun Kim [Wed, 4 Dec 2019 00:55:44 +0000 (00:55 +0000)]
Merge "Improvement variable initialization" into tizen

4 years agoFix the bug of debugging information from fd directory 69/218769/3 accepted/tizen/unified/20191128.161826 submit/tizen/20191128.060302
YoungHun Kim [Thu, 28 Nov 2019 04:41:12 +0000 (13:41 +0900)]
Fix the bug of debugging information from fd directory

Change-Id: I087db4ba66f13c7b7736ec359810d973c40535f8

4 years agoPrint the process information in dispatcher deadlock 48/218748/2
YoungHun Kim [Wed, 27 Nov 2019 23:12:31 +0000 (08:12 +0900)]
Print the process information in dispatcher deadlock

Change-Id: Id3cc060b5e74b4cc8dcdb8cd19fcac2630c61750

4 years agoImprovement variable initialization 81/218681/1
INSUN PYO [Wed, 27 Nov 2019 01:46:41 +0000 (10:46 +0900)]
Improvement variable initialization

Change-Id: I6e27d54859c70120297fe4aab9ba78ce16a566d9

4 years agoChange the value of timeout in case gst_init does not return 06/218306/10 accepted/tizen/unified/20191125.135538 submit/tizen/20191122.052207
YoungHun Kim [Thu, 21 Nov 2019 07:16:37 +0000 (16:16 +0900)]
Change the value of timeout in case gst_init does not return

 - Create the server ready file with g_idle_add
 - Update to check the 'remove' return value and add errno for debugging

Change-Id: I1d92c7b28fd502e0d2dafce4754d0acbe251dec9

4 years ago[VD Req] Do not execute mused in standalone mode 01/217801/3 accepted/tizen/unified/20191120.034451 submit/tizen/20191119.081953
YoungHun Kim [Thu, 14 Nov 2019 08:43:25 +0000 (17:43 +0900)]
[VD Req] Do not execute mused in standalone mode

Change-Id: Ic79c5a91fe890b7ec016b1cb760217f4ce289c8a

4 years agoRemove unnecessary workqueue stuff 04/217504/3 accepted/tizen/unified/20191114.042621 submit/tizen/20191113.065131
Seungbae Shin [Tue, 12 Nov 2019 06:54:16 +0000 (15:54 +0900)]
Remove unnecessary workqueue stuff

Change-Id: If13593ab411f744ae203b6fdbb4e7146feaa9747

4 years agoConsider as normal operation when destroy is executed before job function of data... 72/217472/2 accepted/tizen/unified/20191113.010232 submit/tizen/20191112.062523
YoungHun Kim [Mon, 11 Nov 2019 08:25:29 +0000 (17:25 +0900)]
Consider as normal operation when destroy is executed before job function of data is triggered

Change-Id: I59a9766e50cbe426d71814522e286aa5514dc19a

4 years agoDo not create a dispatcher thread when accessing an invalid fd 36/215536/3 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.022527 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090335 accepted/tizen/unified/20191015.012032 submit/tizen/20191014.103159 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 tizen_5.5.m2_release
YoungHun Kim [Thu, 10 Oct 2019 08:42:16 +0000 (17:42 +0900)]
Do not create a dispatcher thread when accessing an invalid fd

Change-Id: I82df329239bf6a1965ee770865cbca16522c9f2a

4 years agoAdd workqueue job after confirming that the module is valid 32/214432/11 accepted/tizen/unified/20190925.220406 submit/tizen/20190925.015442
YoungHun Kim [Mon, 23 Sep 2019 04:49:21 +0000 (13:49 +0900)]
Add workqueue job after confirming that the module is valid

Change-Id: Iec473889224723e137fe4bb5a347cb386a6177be

4 years agoAvoid the module access after destroy 36/213736/2 accepted/tizen/unified/20190917.034027 submit/tizen/20190911.082511
YoungHun Kim [Wed, 11 Sep 2019 01:44:51 +0000 (10:44 +0900)]
Avoid the module access after destroy

Change-Id: Id6e5779dc8ef38b4625cd0b8c597ea2a733b2cc9

4 years agoAdd the removed data channel creation 37/213537/1 accepted/tizen/unified/20190909.103549 submit/tizen/20190908.233223
YoungHun Kim [Fri, 6 Sep 2019 09:17:55 +0000 (18:17 +0900)]
Add the removed data channel creation

Change-Id: Iedc071d6465b31bf8a438f87eb5234881e0770c2

4 years agoFix crash when create dispatch is failed 93/212993/1 accepted/tizen/unified/20190830.040814 submit/tizen/20190829.112508
Jeongmo Yang [Thu, 29 Aug 2019 06:35:37 +0000 (15:35 +0900)]
Fix crash when create dispatch is failed

- The mutex is unlocked again after unlocked properly.

[Version] 0.3.87
[Profile] Common
[Issue Type] Bug fix

Change-Id: I352fb09b18cebefa07a413c0e2f2817c170454c6
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
4 years agoCreate the diag thread after daemonizing 01/210201/18 accepted/tizen/unified/20190828.011014 submit/tizen/20190827.081232
YoungHun Kim [Wed, 17 Jul 2019 01:14:47 +0000 (10:14 +0900)]
Create the diag thread after daemonizing

 - remove pid file before entering idle at on-demand
 - update gst parameter log
 - update ms_init and ms_run part
 - move ms prefix function of server.c to server_private.c
 - set server ready after daemonizing

Change-Id: I90c4358ee8f9373f896070d2709df237e7ab03e5

4 years agoUpdate the cyclomatic complexity of SAM violation issues 54/212654/11 submit/tizen/20190827.010208
YoungHun Kim [Mon, 26 Aug 2019 01:56:31 +0000 (10:56 +0900)]
Update the cyclomatic complexity of SAM violation issues

Change-Id: Ia9df682ca22f707276d03ec83636e050fd3d7c15

4 years agoUpdate duplicate part to get JSON value 94/212694/5
YoungHun Kim [Mon, 26 Aug 2019 06:26:35 +0000 (15:26 +0900)]
Update duplicate part to get JSON value

Change-Id: I8a9b16944fdf44fbc705407c9d38c7359256eaaf

4 years agoFix the issue of heap-use-after-free 76/211676/3 accepted/tizen/unified/20190820.115033 submit/tizen/20190808.055627 submit/tizen/20190820.015220
YoungHun Kim [Thu, 8 Aug 2019 04:55:59 +0000 (13:55 +0900)]
Fix the issue of heap-use-after-free

 - Use only the more accurate states than muse running
 - Remove muse running

Change-Id: If19b1beae1a2849876ee1acac3b83384e8132999

4 years agoChange the level of log about instance number and idle memory to warning 07/211307/2 accepted/tizen/unified/20190805.042856 submit/tizen/20190802.063806
YoungHun Kim [Thu, 1 Aug 2019 09:01:00 +0000 (18:01 +0900)]
Change the level of log about instance number and idle memory to warning

Change-Id: Ia98a9162e3b5668c9745a2a5623fb580a40b3707

4 years agoModule without data thread does not execute a data socket close 12/210812/8 accepted/tizen/unified/20190730.224236 submit/tizen/20190729.062055
YoungHun Kim [Thu, 25 Jul 2019 04:38:34 +0000 (13:38 +0900)]
Module without data thread does not execute a data socket close

 - update the thread exit

Change-Id: Ieabaab75cf8166d3942694b42147d4259efecef3

4 years agofix the issue of memory leak 34/210634/2 submit/tizen/20190724.023818
YoungHun Kim [Tue, 23 Jul 2019 07:49:22 +0000 (16:49 +0900)]
fix the issue of memory leak

Change-Id: I8d7bde7265fc3329aca8b20473779ec9d044b93a

4 years agoRemove unused path files 31/209831/3 accepted/tizen/unified/20190715.111927 submit/tizen/20190712.045104
YoungHun Kim [Thu, 11 Jul 2019 10:39:12 +0000 (19:39 +0900)]
Remove unused path files

Change-Id: Ib0ad985a76db8d08df30f1f4954aa29bc6951c62

4 years agoMerge "Add new api to get the value of on-demand" into tizen accepted/tizen/unified/20190709.071134 submit/tizen/20190708.231734
YoungHun Kim [Mon, 8 Jul 2019 23:17:01 +0000 (23:17 +0000)]
Merge "Add new api to get the value of on-demand" into tizen

4 years agoAdd new api to get the value of on-demand 66/209266/2
YoungHun Kim [Thu, 4 Jul 2019 07:04:36 +0000 (16:04 +0900)]
Add new api to get the value of on-demand

Change-Id: I155e929dd268f225ff2d72b5676529c1d51f6ad3

4 years agoChange the config value of the systemd service ("false" -> "no") 78/208378/1
INSUN PYO [Mon, 24 Jun 2019 02:27:04 +0000 (11:27 +0900)]
Change the config value of the systemd service ("false" -> "no")

"no" and "false" have the same meaning, but the document has "no".
Also, since the parsing order is "no" first, there is some performance gain.

Change-Id: Idba0756318e6bd5b31fc4249017ca1a454e98294

4 years agoUpdate to lock/unlock entirely 55/207655/1 accepted/tizen/unified/20190613.061530 submit/tizen/20190612.011342
YoungHun Kim [Tue, 11 Jun 2019 00:24:53 +0000 (09:24 +0900)]
Update to lock/unlock entirely

Change-Id: I74e12c65238ef676b2cd62ff5a9b05b86cb22b1c

4 years agoAdd mutex to prevent json object corruption of free 42/207442/1 accepted/tizen/unified/20190612.044531 submit/tizen/20190611.052542
YoungHun Kim [Wed, 5 Jun 2019 02:28:23 +0000 (11:28 +0900)]
Add mutex to prevent json object corruption of free

Change-Id: I3ac6d5932b1771e898b47fc13411ca7d06c009e2

5 years agoSubstitute to use pthead attribute 36/206836/7 accepted/tizen/unified/20190530.043140 submit/tizen/20190529.081944
YoungHun Kim [Tue, 28 May 2019 01:33:35 +0000 (10:33 +0900)]
Substitute to use pthead attribute

Change-Id: Icb29d5fe5ce8a6b93fc6e07be1acdaa698b195aa

5 years agoMerge "Able to get client pid at muse module simply" into tizen
YoungHun Kim [Tue, 21 May 2019 00:35:00 +0000 (00:35 +0000)]
Merge "Able to get client pid at muse module simply" into tizen

5 years agoSet the sleep value of the comment appropriately 75/206475/1 submit/tizen/20190520.225431
YoungHun Kim [Mon, 20 May 2019 08:45:04 +0000 (17:45 +0900)]
Set the sleep value of the comment appropriately

Change-Id: I1be6bdc1eb22e1b003bae2399b24a9d04bdde9ea

5 years agoAble to get client pid at muse module simply 42/206442/2
YoungHun Kim [Mon, 20 May 2019 02:01:52 +0000 (11:01 +0900)]
Able to get client pid at muse module simply

Change-Id: Ie187a6fb04c77599d112a2790d06b8b12df3b563

5 years agoRemove thread check in _ms_ipc_dispatch_worker function. 96/206096/1 submit/tizen/20190514.085759
Jeongmo Yang [Tue, 14 May 2019 02:10:58 +0000 (11:10 +0900)]
Remove thread check in _ms_ipc_dispatch_worker function.

- The thread variable could not be assigned at that time,
  although it's created successfully by thread scheduling.
  It can cause unexpected invalid operation.

[Version] 0.3.77
[Profile] Common
[Issue Type] Bug fix

Change-Id: Id860d8c2df21da6270866ce2367e711224bf2c43
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoFix the heap-use-after-free of workqueue thread 20/204720/3 accepted/tizen/unified/20190429.103752 submit/tizen/20190426.101702 submit/tizen/20190429.001931
YoungHun Kim [Fri, 26 Apr 2019 02:49:04 +0000 (11:49 +0900)]
Fix the heap-use-after-free of workqueue thread

 - Add a mutex at calling the msg thread creation of the workqueue
 - Set null after msg thread unref
 - Change variable name of thread

Change-Id: I5d4a6acb05d1920dc5da7970ee68d5c762b504e4

5 years agoAdd sleep to avoid busy looping on epoll_wait 20/204620/1 accepted/tizen/unified/20190426.054051 submit/tizen/20190425.063141
YoungHun Kim [Wed, 24 Apr 2019 23:38:33 +0000 (08:38 +0900)]
Add sleep to avoid busy looping on epoll_wait

Change-Id: I80331394be0965978bca17a9fee0d5951d46118f

5 years agoAvoid dispatching if RM is not launched to prevent unnecessary crash 46/203546/7 accepted/tizen/unified/20190422.003831 submit/tizen/20190419.033804
YoungHun Kim [Tue, 16 Apr 2019 00:01:28 +0000 (09:01 +0900)]
Avoid dispatching if RM is not launched to prevent unnecessary crash

 - Remove duplicate argument
 - Add the service order related with RM

Change-Id: I94b092ae1e3ca57af3ae518b2045b181a8cb260c

5 years agofixup! Execute dispatcher worker only when muse-server is ready 95/202195/2 accepted/tizen/unified/20190327.025244 submit/tizen/20190326.055955 submit/tizen/20190326.111110
YoungHun Kim [Tue, 26 Mar 2019 02:44:39 +0000 (11:44 +0900)]
fixup! Execute dispatcher worker only when muse-server is ready

Change-Id: If0103cfd2fe08643bedaca00c8e8af67e56f5766

5 years agoExecute dispatcher worker only when muse-server is ready 04/201904/5 accepted/tizen/unified/20190325.070928 submit/tizen/20190322.043412 submit/tizen/20190322.112341
YoungHun Kim [Thu, 21 Mar 2019 00:22:32 +0000 (09:22 +0900)]
Execute dispatcher worker only when muse-server is ready

Change-Id: I046a5e3509c70c16e95e5fe4a0cf01429b19e1ae

5 years agoRemove the json free at module cleanup because already freed 35/200835/1 accepted/tizen/unified/20190320.082238 submit/tizen/20190319.020059
YoungHun Kim [Tue, 5 Mar 2019 02:53:25 +0000 (11:53 +0900)]
Remove the json free at module cleanup because already freed

Change-Id: I37565f58a87c1e2b1d9d785d5847515c8181f7cd

5 years agoAdd new API to get fds 18/200218/5
Jeongmo Yang [Wed, 20 Feb 2019 08:13:13 +0000 (17:13 +0900)]
Add new API to get fds

- The API is existed to get only one fd.

[Version] 0.3.70
[Profile] Common
[Issue Type] Update
[Dependency module] N/A

Change-Id: Ie4a53d591ada37b4a953ddace4d4478ac8787276
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoUpdate to sync with tizen_5.0 branch 36/199836/2
YoungHun Kim [Fri, 15 Feb 2019 01:53:53 +0000 (10:53 +0900)]
Update to sync with tizen_5.0 branch

Change-Id: Ib86f1499aa0b4432076960c9349a0ba13b6bc449

5 years agoMerge "Update message parsing error handling" into tizen accepted/tizen/unified/20190218.063823 submit/tizen/20190214.113838
YoungHun Kim [Thu, 14 Feb 2019 11:37:49 +0000 (11:37 +0000)]
Merge "Update message parsing error handling" into tizen

5 years agoUpdate message parsing error handling 76/199476/4
YoungHun Kim [Tue, 12 Feb 2019 01:58:35 +0000 (10:58 +0900)]
Update message parsing error handling

 - Add mutex lock to avoid race condition
 - Do not dispatch after module index error case

Change-Id: I85e94353559d780e55d9cb5096f33e4967a2b53b

5 years agoMerge "Resolve the ASAN issue of heap-use-after-free" into tizen
YoungHun Kim [Thu, 14 Feb 2019 11:36:36 +0000 (11:36 +0000)]
Merge "Resolve the ASAN issue of heap-use-after-free" into tizen

5 years agoResolve the ASAN issue of heap-use-after-free 64/198764/25
YoungHun Kim [Tue, 29 Jan 2019 07:43:53 +0000 (16:43 +0900)]
Resolve the ASAN issue of heap-use-after-free

 - The issue is accessing connection and workqueue during g_main_quit
    1. Set null after free
    2. Update the 'state' variable during g_main_quit
    3. Update muse_server_config part separately

Change-Id: I2d8daa2714e9f463a29c04c3a028e352d4b2b5b2

5 years agoMerge "Release the connection only if connected properly" into tizen
YoungHun Kim [Fri, 1 Feb 2019 08:08:20 +0000 (08:08 +0000)]
Merge "Release the connection only if connected properly" into tizen

5 years agoCorrect pkgconfig dependency 53/199053/1
Jeongmo Yang [Fri, 1 Feb 2019 05:38:17 +0000 (14:38 +0900)]
Correct pkgconfig dependency

Change-Id: I09a5102051783e94f965df492b23c35093e009fc
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoRevert "Set mm-common only at client packages" 49/199049/1
Jeongmo Yang [Fri, 1 Feb 2019 05:11:43 +0000 (14:11 +0900)]
Revert "Set mm-common only at client packages"

This reverts commit a320e1a44215633d8e4456ed00aed5ef23fdce6f.

Below functions return MM_ERROR_* values, so it's proper to include mm_error header file in muse_core.h
- int muse_core_connection_close(int sock_fd);
- int muse_core_set_nonblocking(int fd, bool value);
- int muse_core_set_socket_timeout(int sock_fd, int timeout_sec);

Change-Id: I7bd806cc7cbd226828b44fcb393d4b0fc53fda57
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoRelease the connection only if connected properly 20/198620/8
YoungHun Kim [Mon, 28 Jan 2019 06:33:05 +0000 (15:33 +0900)]
Release the connection only if connected properly

Change-Id: Id2c95ec2ee255612622450771795043439991c64

5 years agoSet mm-common only at client packages 78/198978/1 submit/tizen/20190131.105357
YoungHun Kim [Thu, 31 Jan 2019 10:36:26 +0000 (19:36 +0900)]
Set mm-common only at client packages

Change-Id: I5c5d47ab2de739047e1f984501264e580f2fb914
(cherry picked from commit 18e25070d71cbd8a1d7435b213d50cb7defe006c)

5 years agoIgnore the client connection requests prior to server reaedy 86/198886/1
YoungHun Kim [Thu, 31 Jan 2019 00:20:55 +0000 (09:20 +0900)]
Ignore the client connection requests prior to server reaedy

Change-Id: I7d11e68248c6f69133db3e7e6d973a0f0a4bd0ea

5 years agoAdd mm-common to pc file for client packages 23/198823/3 submit/tizen/20190130.080354
Jeongmo Yang [Wed, 30 Jan 2019 05:34:03 +0000 (14:34 +0900)]
Add mm-common to pc file for client packages

[Version] 0.3.67
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A

Change-Id: I5763bac9d3115daf17193fd7ff445a8ee9cfbe32
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
5 years agoRemove the duplicate ms_log_get_cmd_info 19/198619/2 submit/tizen/20190129.225447
YoungHun Kim [Mon, 28 Jan 2019 06:25:26 +0000 (15:25 +0900)]
Remove the duplicate ms_log_get_cmd_info

Change-Id: I37d6c5aaa4d2a9120cfdc9388166ffd349cc6d6b

5 years agoChange not to export muse module enumeration 85/198185/4
YoungHun Kim [Tue, 22 Jan 2019 07:18:53 +0000 (16:18 +0900)]
Change not to export muse module enumeration

Change-Id: I5531512146c695625fb088ab10b24e92e2381c8f

5 years agoChange to use new feature of external storage 65/198065/2
YoungHun Kim [Fri, 18 Jan 2019 07:37:18 +0000 (16:37 +0900)]
Change to use new feature of external storage

Change-Id: I916b07af824c8939ab98b79424b73f8fcb2e2da2

5 years agoDisable storage_change_cb at wearable because there is not external storage 49/197749/5 accepted/tizen/unified/20190128.061324 submit/tizen/20190117.103356 submit/tizen/20190121.010243
YoungHun Kim [Wed, 16 Jan 2019 05:46:12 +0000 (14:46 +0900)]
Disable storage_change_cb at wearable because there is not external storage

Change-Id: I632ea0c5293203c3e7b014f033d2b394aa459924

5 years agoFix the svace issue 21/197721/1 submit/tizen/20190116.015000
YoungHun Kim [Wed, 16 Jan 2019 01:25:37 +0000 (10:25 +0900)]
Fix the svace issue

Change-Id: Id03c37441b6759414c91767706ec3ccceeb7b002

5 years agoUpdate the Security vulnerability 96/197396/4 submit/tizen/20190115.230031
YoungHun Kim [Thu, 10 Jan 2019 12:00:34 +0000 (21:00 +0900)]
Update the Security vulnerability

 - Check if there is symbolic link using realopen before calling open()
 - Compare to null character in strncmp

Change-Id: I65d90b2184cfeccad7eb97c97ca0b014660435b4

5 years agoChange the path file of VD AUDIO 10/196710/2 accepted/tizen/unified/20190111.055100 submit/tizen/20190104.062117 submit/tizen/20190109.045623
YoungHun Kim [Fri, 4 Jan 2019 00:43:35 +0000 (09:43 +0900)]
Change the path file of VD AUDIO

Change-Id: Ibcd3067c3cef8d3c4e107ae5f6c7597b5d9870c2

5 years agoSend create server ack always 97/196597/5 accepted/tizen/unified/20190104.061250 submit/tizen/20190103.062346
YoungHun Kim [Wed, 2 Jan 2019 23:07:50 +0000 (08:07 +0900)]
Send create server ack always

Change-Id: I3ece87bc45570a7ab8528022b94fcb0be56b7a00

5 years agoResolve the svace issue 91/196191/1 accepted/tizen/unified/20181227.062019 submit/tizen/20181226.014257
YoungHun Kim [Wed, 26 Dec 2018 00:52:41 +0000 (09:52 +0900)]
Resolve the svace issue

 - It is usually checked for these functions (getpwuid, getgrgid)
 - getgrgid makes no guaranteee of thread safety. Use getgrgid_r function instead

Change-Id: If2817073e9b81347c683583977df2f27373952c2

5 years agoUpdate to save errno it may have been changed by library call 40/196040/2 submit/tizen/20181221.044435
YoungHun Kim [Fri, 21 Dec 2018 03:04:11 +0000 (12:04 +0900)]
Update to save errno it may have been changed by library call

Change-Id: I131f6b7f3ad2aba8f9bd2e77e0de6eb0de4a50a1

5 years agoUpdate the system part according to build feature 08/195908/4 accepted/tizen/unified/20181220.061617 submit/tizen/20181219.104521
YoungHun Kim [Wed, 19 Dec 2018 10:25:33 +0000 (19:25 +0900)]
Update the system part according to build feature

Change-Id: Id01bef38aea3ce39bfcc7fc7fa9e891f1c51ce95

5 years agoMerge "Add BSD 3-clause License" into tizen accepted/tizen/unified/20181219.154857 submit/tizen/20181219.052351
YoungHun Kim [Wed, 19 Dec 2018 03:16:21 +0000 (03:16 +0000)]
Merge "Add BSD 3-clause License" into tizen

5 years agoNotify corresponding command when mm-resource-managerd shutdown 86/195186/19 accepted/tizen/unified/20181219.063337 submit/tizen/20181218.113808
YoungHun Kim [Tue, 11 Dec 2018 10:48:17 +0000 (19:48 +0900)]
Notify corresponding command when mm-resource-managerd shutdown

Change-Id: Ia2d023a90db7ae4c6f164fff54712a59bcf10995

5 years agoAdd BSD 3-clause License 02/195302/2
YoungHun Kim [Wed, 12 Dec 2018 09:54:58 +0000 (18:54 +0900)]
Add BSD 3-clause License

Change-Id: Ie2833d6b1f0ed5955a35b2c08b825d6fedf10edc

5 years agoMerge "Update the socket unittest with using muse-server by itself" into tizen accepted/tizen/unified/20181218.062842 submit/tizen/20181214.034342
YoungHun Kim [Tue, 11 Dec 2018 01:27:56 +0000 (01:27 +0000)]
Merge "Update the socket unittest with using muse-server by itself" into tizen

5 years agoUpdate the socket unittest with using muse-server by itself 60/194360/4
YoungHun Kim [Mon, 3 Dec 2018 11:51:07 +0000 (20:51 +0900)]
Update the socket unittest with using muse-server by itself

Change-Id: I45ba36f51d1b67e4eb925f5c8d5f2f8a325b809e

5 years agoMerge "Update to remove unix domain socket files" into tizen
YoungHun Kim [Mon, 10 Dec 2018 08:03:12 +0000 (08:03 +0000)]
Merge "Update to remove unix domain socket files" into tizen

5 years agoUpdate to remove unix domain socket files 25/194225/4
YoungHun Kim [Fri, 30 Nov 2018 06:30:55 +0000 (15:30 +0900)]
Update to remove unix domain socket files

Change-Id: I716e84d60b2904041e66320fa19c179c8fed5e25

5 years agoMerge "Update to log additional information for debugging the exception errors" into...
YoungHun Kim [Mon, 10 Dec 2018 06:58:50 +0000 (06:58 +0000)]
Merge "Update to log additional information for debugging the exception errors" into tizen

5 years agoUpdate to log additional information for debugging the exception errors 16/194216/12
YoungHun Kim [Fri, 30 Nov 2018 05:02:03 +0000 (14:02 +0900)]
Update to log additional information for debugging the exception errors

 - Additional information is Unix domain socket using system call and
   the user (uid, user name) and group (gid, group name) using new function (ms_log_user_group_info)

Change-Id: I0e66a61568fed1f39aa3e1230ac341b7c9ab3b13

5 years agoFix the dlog's invalid format 53/194753/1
YoungHun Kim [Fri, 7 Dec 2018 06:19:49 +0000 (15:19 +0900)]
Fix the dlog's invalid format

Change-Id: I67a1e987020871b8b9f6707d66b48d9c936e85d1

5 years agoMerge "Troubleshoot exceeding maximum dispatcher" into tizen accepted/tizen/unified/20181113.085915 submit/tizen/20181112.074812
YoungHun Kim [Mon, 12 Nov 2018 07:47:59 +0000 (07:47 +0000)]
Merge "Troubleshoot exceeding maximum dispatcher" into tizen

5 years agoIncrease the maximum dispatcher value because added new api 63/192863/1
YoungHun Kim [Mon, 12 Nov 2018 04:28:45 +0000 (13:28 +0900)]
Increase the maximum dispatcher value because added new api

Change-Id: I2f097652775cdc0b42bfd0abd1f58bbe654ef900