Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1eb8f41e
Commit
1eb8f41e
authored
Jan 17, 2024
by
Marc-Aurel Zent
Committed by
Alexandre Julliard
Feb 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Improve formatting in mach init_tracing_mechanism().
parent
dee10199
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mach.c
server/mach.c
+7
-7
No files found.
server/mach.c
View file @
1eb8f41e
...
@@ -100,18 +100,18 @@ void init_tracing_mechanism(void)
...
@@ -100,18 +100,18 @@ void init_tracing_mechanism(void)
{
{
mach_port_t
bp
;
mach_port_t
bp
;
if
(
task_get_bootstrap_port
(
mach_task_self
(),
&
bp
)
!=
KERN_SUCCESS
)
if
(
task_get_bootstrap_port
(
mach_task_self
(),
&
bp
)
!=
KERN_SUCCESS
)
fatal_error
(
"Can't find bootstrap port
\n
"
);
fatal_error
(
"Can't find bootstrap port
\n
"
);
if
(
mach_port_allocate
(
mach_task_self
(),
MACH_PORT_RIGHT_RECEIVE
,
&
server_mach_port
)
!=
KERN_SUCCESS
)
if
(
mach_port_allocate
(
mach_task_self
(),
MACH_PORT_RIGHT_RECEIVE
,
&
server_mach_port
)
!=
KERN_SUCCESS
)
fatal_error
(
"Can't allocate port
\n
"
);
fatal_error
(
"Can't allocate port
\n
"
);
if
(
mach_port_insert_right
(
mach_task_self
(),
if
(
mach_port_insert_right
(
mach_task_self
(),
server_mach_port
,
server_mach_port
,
server_mach_port
,
server_mach_port
,
MACH_MSG_TYPE_MAKE_SEND
)
!=
KERN_SUCCESS
)
MACH_MSG_TYPE_MAKE_SEND
)
!=
KERN_SUCCESS
)
fatal_error
(
"Error inserting rights
\n
"
);
fatal_error
(
"Error inserting rights
\n
"
);
if
(
bootstrap_register2
(
bp
,
server_dir
,
server_mach_port
,
0
)
!=
KERN_SUCCESS
)
if
(
bootstrap_register2
(
bp
,
server_dir
,
server_mach_port
,
0
)
!=
KERN_SUCCESS
)
fatal_error
(
"Can't check in server_mach_port
\n
"
);
fatal_error
(
"Can't check in server_mach_port
\n
"
);
mach_port_deallocate
(
mach_task_self
(),
bp
);
mach_port_deallocate
(
mach_task_self
(),
bp
);
}
}
/* initialize the per-process tracing mechanism */
/* initialize the per-process tracing mechanism */
...
...
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