Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Linshizhi
ffmpeg.wasm-core
Commits
d3ed8a4d
Commit
d3ed8a4d
authored
Mar 20, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: try to avoid calling av_log() from sigterm_handler()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
9d60527a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ffmpeg.c
ffmpeg.c
+8
-3
No files found.
ffmpeg.c
View file @
d3ed8a4d
...
...
@@ -303,15 +303,20 @@ static void sub2video_flush(InputStream *ist)
/* end of sub2video hack */
void
term_exit
(
void
)
static
void
term_exit_sigsafe
(
void
)
{
av_log
(
NULL
,
AV_LOG_QUIET
,
"%s"
,
""
);
#if HAVE_TERMIOS_H
if
(
restore_tty
)
tcsetattr
(
0
,
TCSANOW
,
&
oldtty
);
#endif
}
void
term_exit
(
void
)
{
av_log
(
NULL
,
AV_LOG_QUIET
,
"%s"
,
""
);
term_exit_sigsafe
();
}
static
volatile
int
received_sigterm
=
0
;
static
volatile
int
received_nb_signals
=
0
;
static
int
main_return_code
=
0
;
...
...
@@ -321,7 +326,7 @@ sigterm_handler(int sig)
{
received_sigterm
=
sig
;
received_nb_signals
++
;
term_exit
();
term_exit
_sigsafe
();
if
(
received_nb_signals
>
3
)
exit_program
(
123
);
}
...
...
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