Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mkcl
mkcl
Commits
1bb4870e
Commit
1bb4870e
authored
May 12, 2020
by
Jean-Claude Beaudoin
Browse files
Try to fix obvious mistakes and typos in code for Android just previously committed.
parent
223027a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/c/unixint.d
View file @
1bb4870e
...
...
@@ -2140,12 +2140,12 @@ void mkcl_init_late_unixint(MKCL)
}
#
if
__ANDROID__
static
struct
sigaction
&
old_sigwinch_sigaction
;
static
struct
sigaction
old_sigwinch_sigaction
;
static
void
temp_sigwinch_handler
(
int
sig
,
siginfo_t
*
info
,
void
*
aux
)
{
if
(
pthread_equal
(
signal_servicing_thread
,
pthread_self
()))
{
sigaction
(
SIGWINCH
,
old_sigwinch_sigaction
,
NULL
);
sigaction
(
SIGWINCH
,
&
old_sigwinch_sigaction
,
NULL
);
pthread_exit
(
PTHREAD_CANCELLED
);
}
else
...
...
@@ -2167,12 +2167,12 @@ static void terminate_signal_servicing_thread(void)
{
struct
sigaction
new_sigwinch_sigaction
;
new_sigwinch_
handler
.
sa_sigaction
=
temp_sigwinch_handler
;
sigemptyset
(&
new_sigwinch_
handler
.
sa_mask
);
new_sigwinch_
handler
.
sa_flags
=
SA_SIGINFO
;
new_sigwinch_
sigaction
.
sa_sigaction
=
temp_sigwinch_handler
;
sigemptyset
(&
new_sigwinch_
sigaction
.
sa_mask
);
new_sigwinch_
sigaction
.
sa_flags
=
SA_SIGINFO
;
sigaction
(
SIGWINCH
,
&
new_sigwinch_sigaction
,
&
old_sigwinch_sigaction
);
pthread_kill
(
thread
_id
,
SIGWINCH
);
pthread_kill
(
signal_servicing_
thread
,
SIGWINCH
);
}
#
else
/* __ANDROID__ */
/* Android refused to implement pthread_cancel() et al. */
...
...
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