projects
/
platform
/
core
/
system
/
resourced.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03a85d1
)
cpu-boosting: check return value of 'unlink'
97/282097/6
accepted/tizen_7.0_unified_hotfix
tizen_7.0_hotfix
accepted/tizen/7.0/unified/20221110.061541
accepted/tizen/7.0/unified/hotfix/20221116.105753
accepted/tizen/unified/20220928.020843
tizen_7.0_m2_release
author
Unsung Lee
<unsung.lee@samsung.com>
Tue, 27 Sep 2022 04:48:12 +0000
(13:48 +0900)
committer
Unsung Lee
<unsung.lee@samsung.com>
Tue, 27 Sep 2022 08:02:16 +0000
(17:02 +0900)
Change-Id: Ia21839c980a252309546f6f9ea7fc588f57ec03c
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-optimizer/cpu/cpu-boosting.c
patch
|
blob
|
history
diff --git
a/src/resource-optimizer/cpu/cpu-boosting.c
b/src/resource-optimizer/cpu/cpu-boosting.c
index
859986d
..
0588cd2
100644
(file)
--- a/
src/resource-optimizer/cpu/cpu-boosting.c
+++ b/
src/resource-optimizer/cpu/cpu-boosting.c
@@
-833,7
+833,9
@@
static int cpu_boosting_init_socket(void)
sockaddr.sun_family = AF_UNIX;
strncpy(sockaddr.sun_path, (const char *)SOCK_PATH, strlen(SOCK_PATH)+1);
size = sizeof(sockaddr);
- unlink(SOCK_PATH);
+ ret = unlink(SOCK_PATH);
+ if (ret < 0)
+ _W("[CPU-BOOSTING] Failed to unlink because of %m");
ret = bind(sock, (struct sockaddr *)&sockaddr, size);
if (ret < 0) {