Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
d58d3af1
Commit
d58d3af1
authored
21 years ago
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore SIGPIPE by default; it is handled via EPIPE
parent
c4a0223e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
main.c
main.c
+6
-0
rfb.h
rfb/rfb.h
+1
-0
No files found.
main.c
View file @
d58d3af1
...
@@ -638,6 +638,8 @@ rfbScreenInfoPtr rfbGetScreen(int* argc,char** argv,
...
@@ -638,6 +638,8 @@ rfbScreenInfoPtr rfbGetScreen(int* argc,char** argv,
/* initialize client list and iterator mutex */
/* initialize client list and iterator mutex */
rfbClientListInit
(
rfbScreen
);
rfbClientListInit
(
rfbScreen
);
rfbScreen
->
ignoreSIGPIPE
=
TRUE
;
return
(
rfbScreen
);
return
(
rfbScreen
);
}
}
...
@@ -747,6 +749,8 @@ void rfbScreenCleanup(rfbScreenInfoPtr rfbScreen)
...
@@ -747,6 +749,8 @@ void rfbScreenCleanup(rfbScreenInfoPtr rfbScreen)
#endif
#endif
}
}
static
void
ignoreSignal
(
int
dummy
)
{}
void
rfbInitServer
(
rfbScreenInfoPtr
rfbScreen
)
void
rfbInitServer
(
rfbScreenInfoPtr
rfbScreen
)
{
{
#ifdef WIN32
#ifdef WIN32
...
@@ -755,6 +759,8 @@ void rfbInitServer(rfbScreenInfoPtr rfbScreen)
...
@@ -755,6 +759,8 @@ void rfbInitServer(rfbScreenInfoPtr rfbScreen)
#endif
#endif
rfbInitSockets
(
rfbScreen
);
rfbInitSockets
(
rfbScreen
);
httpInitSockets
(
rfbScreen
);
httpInitSockets
(
rfbScreen
);
if
(
rfbScreen
->
ignoreSIGPIPE
)
signal
(
SIGPIPE
,
ignoreSignal
);
}
}
#ifndef LIBVNCSERVER_HAVE_GETTIMEOFDAY
#ifndef LIBVNCSERVER_HAVE_GETTIMEOFDAY
...
...
This diff is collapsed.
Click to expand it.
rfb/rfb.h
View file @
d58d3af1
...
@@ -274,6 +274,7 @@ typedef struct _rfbScreenInfo
...
@@ -274,6 +274,7 @@ typedef struct _rfbScreenInfo
rfbBool
backgroundLoop
;
rfbBool
backgroundLoop
;
#endif
#endif
rfbBool
ignoreSIGPIPE
;
}
rfbScreenInfo
,
*
rfbScreenInfoPtr
;
}
rfbScreenInfo
,
*
rfbScreenInfoPtr
;
...
...
This diff is collapsed.
Click to expand it.
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