Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
9474750b
Commit
9474750b
authored
Sep 11, 2022
by
石松洲
Committed by
John Wu
Sep 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close fd of erroneous daemon socket connections
parent
e86db0bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
daemon.cpp
native/src/core/daemon.cpp
+3
-0
No files found.
native/src/core/daemon.cpp
View file @
9474750b
...
@@ -447,12 +447,15 @@ int connect_daemon(int req, bool create) {
...
@@ -447,12 +447,15 @@ int connect_daemon(int req, bool create) {
break
;
break
;
case
MainResponse
:
:
ERROR
:
case
MainResponse
:
:
ERROR
:
LOGE
(
"Daemon error
\n
"
);
LOGE
(
"Daemon error
\n
"
);
close
(
fd
);
return
-
1
;
return
-
1
;
case
MainResponse
:
:
ROOT_REQUIRED
:
case
MainResponse
:
:
ROOT_REQUIRED
:
LOGE
(
"Root is required for this operation
\n
"
);
LOGE
(
"Root is required for this operation
\n
"
);
close
(
fd
);
return
-
1
;
return
-
1
;
case
MainResponse
:
:
ACCESS_DENIED
:
case
MainResponse
:
:
ACCESS_DENIED
:
LOGE
(
"Access denied
\n
"
);
LOGE
(
"Access denied
\n
"
);
close
(
fd
);
return
-
1
;
return
-
1
;
default
:
default
:
__builtin_unreachable
();
__builtin_unreachable
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment