Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0cd0626d
Commit
0cd0626d
authored
Mar 01, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Print a message if wineserver crashes and we don't dump cores.
parent
20a88616
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
0 deletions
+32
-0
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
config.h.in
include/config.h.in
+3
-0
signal.c
server/signal.c
+26
-0
No files found.
configure
View file @
0cd0626d
...
...
@@ -7038,6 +7038,7 @@ done
for
ac_header
in
\
IOKit/IOKitLib.h
\
alsa/asoundlib.h
\
...
...
@@ -7119,6 +7120,7 @@ for ac_header in \
sys/poll.h
\
sys/ptrace.h
\
sys/reg.h
\
sys/resource.h
\
sys/scsiio.h
\
sys/shm.h
\
sys/signal.h
\
...
...
configure.ac
View file @
0cd0626d
...
...
@@ -252,6 +252,7 @@ AC_CHECK_HEADERS(\
sys/poll.h \
sys/ptrace.h \
sys/reg.h \
sys/resource.h \
sys/scsiio.h \
sys/shm.h \
sys/signal.h \
...
...
include/config.h.in
View file @
0cd0626d
...
...
@@ -734,6 +734,9 @@
/* Define to 1 if you have the <sys/reg.h> header file. */
#undef HAVE_SYS_REG_H
/* Define to 1 if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
/* Define to 1 if you have the <sys/scsiio.h> header file. */
#undef HAVE_SYS_SCSIIO_H
...
...
server/signal.c
View file @
0cd0626d
...
...
@@ -28,6 +28,9 @@
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
#include <unistd.h>
#include "file.h"
...
...
@@ -215,6 +218,13 @@ static void do_sigchld( int signum )
do_signal
(
handler_sigchld
);
}
/* SIGSEGV handler */
static
void
do_sigsegv
(
int
signum
)
{
fprintf
(
stderr
,
"wineserver crashed, please report this.
\n
"
);
abort
();
}
/* SIGIO handler */
#ifdef HAVE_SIGINFO_T_SI_FD
static
void
do_sigio
(
int
signum
,
siginfo_t
*
si
,
void
*
x
)
...
...
@@ -241,6 +251,17 @@ int watchdog_triggered(void)
return
watchdog
!=
0
;
}
static
int
core_dump_disabled
(
void
)
{
int
r
=
0
;
#ifdef RLIMIT_CORE
struct
rlimit
lim
;
r
=
!
getrlimit
(
RLIMIT_CORE
,
&
lim
)
&&
(
lim
.
rlim_cur
==
0
);
#endif
return
r
;
}
void
init_signals
(
void
)
{
struct
sigaction
action
;
...
...
@@ -279,6 +300,11 @@ void init_signals(void)
action
.
sa_handler
=
do_sigterm
;
sigaction
(
SIGQUIT
,
&
action
,
NULL
);
sigaction
(
SIGTERM
,
&
action
,
NULL
);
if
(
core_dump_disabled
())
{
action
.
sa_handler
=
do_sigsegv
;
sigaction
(
SIGSEGV
,
&
action
,
NULL
);
}
action
.
sa_handler
=
SIG_IGN
;
sigaction
(
SIGXFSZ
,
&
action
,
NULL
);
#ifdef HAVE_SIGINFO_T_SI_FD
...
...
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