Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
0194cf13
Commit
0194cf13
authored
Apr 11, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLC: remove false positives after fork()
parent
028bcb00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
bin/override.c
bin/override.c
+18
-8
No files found.
bin/override.c
View file @
0194cf13
...
@@ -26,13 +26,6 @@
...
@@ -26,13 +26,6 @@
void
vlc_enable_override
(
void
);
void
vlc_enable_override
(
void
);
static
bool
override
=
false
;
void
vlc_enable_override
(
void
)
{
override
=
true
;
}
#if defined (__GNUC__)
/* typeof and statement-expression */
\
#if defined (__GNUC__)
/* typeof and statement-expression */
\
&& (defined (__ELF__) && !defined (__sun__))
&& (defined (__ELF__) && !defined (__sun__))
/* Solaris crashes on printf("%s", NULL); which is legal, but annoying. */
/* Solaris crashes on printf("%s", NULL); which is legal, but annoying. */
...
@@ -46,6 +39,19 @@ void vlc_enable_override (void)
...
@@ -46,6 +39,19 @@ void vlc_enable_override (void)
# include <execinfo.h>
# include <execinfo.h>
#endif
#endif
static
bool
override
=
false
;
static
void
vlc_reset_override
(
void
)
{
override
=
false
;
}
void
vlc_enable_override
(
void
)
{
override
=
true
;
pthread_atfork
(
NULL
,
NULL
,
vlc_reset_override
);
}
static
void
vlogbug
(
const
char
*
level
,
const
char
*
func
,
const
char
*
fmt
,
static
void
vlogbug
(
const
char
*
level
,
const
char
*
func
,
const
char
*
fmt
,
va_list
ap
)
va_list
ap
)
{
{
...
@@ -186,4 +192,8 @@ int sigaction (int signum, const struct sigaction *act, struct sigaction *old)
...
@@ -186,4 +192,8 @@ int sigaction (int signum, const struct sigaction *act, struct sigaction *old)
}
}
#endif
/* __ELF__ */
#else
static
void
vlc_enable_override
(
void
)
{
}
#endif
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