Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jason Beetham
wine
Commits
fb65f7d6
Commit
fb65f7d6
authored
25 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Dump server objects on SIGHUP.
parent
5bc78089
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/select.c
+21
-1
21 additions, 1 deletion
server/select.c
with
21 additions
and
1 deletion
server/select.c
+
21
−
1
View file @
fb65f7d6
...
...
@@ -150,6 +150,16 @@ static void handle_timeout( struct timeout_user *user )
free
(
user
);
}
#ifdef DEBUG_OBJECTS
static
int
do_dump_objects
;
/* SIGHUP handler */
static
void
sighup
()
{
do_dump_objects
=
1
;
}
#endif
/* server main loop */
void
select_loop
(
void
)
{
...
...
@@ -157,6 +167,9 @@ void select_loop(void)
setsid
();
signal
(
SIGPIPE
,
SIG_IGN
);
#ifdef DEBUG_OBJECTS
signal
(
SIGHUP
,
sighup
);
#endif
while
(
nb_users
)
{
...
...
@@ -199,7 +212,14 @@ void select_loop(void)
if
(
!
ret
)
continue
;
if
(
ret
==
-
1
)
{
if
(
errno
==
EINTR
)
continue
;
if
(
errno
==
EINTR
)
{
#ifdef DEBUG_OBJECTS
if
(
do_dump_objects
)
dump_objects
();
do_dump_objects
=
0
;
#endif
continue
;
}
perror
(
"select"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment