Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
b88ecc0a
Commit
b88ecc0a
authored
May 31, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file output: unfix SIGPIPE blocking if POSIX RTS is unsupported
parent
fe50471f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/access_output/file.c
modules/access_output/file.c
+8
-3
No files found.
modules/access_output/file.c
View file @
b88ecc0a
...
...
@@ -50,6 +50,9 @@
#ifndef O_LARGEFILE
# define O_LARGEFILE 0
#endif
#ifndef _POSIX_REALTIME_SIGNALS
# define _POSIX_REALTIME_SIGNALS (-1)
#endif
#define SOUT_CFG_PREFIX "sout-file-"
...
...
@@ -103,7 +106,7 @@ static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer )
return
i_write
;
}
#if
def S_ISSOCK
#if
(_POSIX_REALTIME_SIGNALS > 0)
static
ssize_t
WritePipe
(
sout_access_out_t
*
access
,
block_t
*
block
)
{
int
fd
=
(
intptr_t
)
access
->
p_sys
;
...
...
@@ -156,7 +159,11 @@ static ssize_t WritePipe(sout_access_out_t *access, block_t *block)
return
total
;
}
#else
# define WritePipe Write
#endif
#ifdef S_ISSOCK
static
ssize_t
Send
(
sout_access_out_t
*
access
,
block_t
*
block
)
{
int
fd
=
(
intptr_t
)
access
->
p_sys
;
...
...
@@ -191,8 +198,6 @@ static ssize_t Send(sout_access_out_t *access, block_t *block)
}
return
total
;
}
#else
# define WritePipe Write
#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