Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c3bd7793
Commit
c3bd7793
authored
Dec 29, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
posix: simplify thread error handler
parent
9d12638c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
src/posix/thread.c
src/posix/thread.c
+1
-25
No files found.
src/posix/thread.c
View file @
c3bd7793
...
...
@@ -162,31 +162,7 @@ vlc_thread_fatal (const char *action, int error,
fprintf
(
stderr
,
"LibVLC fatal error %s (%d) in thread %lu "
,
action
,
error
,
vlc_threadid
());
vlc_trace
(
function
,
file
,
line
);
/* Sometimes strerror_r() crashes too, so make sure we print an error
* message before we invoke it */
#ifdef __GLIBC__
/* Avoid the strerror_r() prototype brain damage in glibc */
errno
=
error
;
fprintf
(
stderr
,
" Error message: %m
\n
"
);
#else
char
buf
[
1000
];
const
char
*
msg
;
switch
(
strerror_r
(
error
,
buf
,
sizeof
(
buf
)))
{
case
0
:
msg
=
buf
;
break
;
case
ERANGE
:
/* should never happen */
msg
=
"unknown (too big to display)"
;
break
;
default:
msg
=
"unknown (invalid error number)"
;
break
;
}
fprintf
(
stderr
,
" Error message: %s
\n
"
,
msg
);
#endif
perror
(
"Thread error"
);
fflush
(
stderr
);
vlc_restorecancel
(
canc
);
...
...
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