Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
f3474fd0
Commit
f3474fd0
authored
Jul 29, 1996
by
Per Cederqvist
Browse files
(sighandler_hup): Reinstall the SIGHUP handler.
(sighandler_usr2): Reinstall the SIGHUSR2 handler.
parent
f95e7ecd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/ramkomd.c
View file @
f3474fd0
/*
* $Id: ramkomd.c,v 0.
59
1996/07/2
8 23:43:39
ceder Exp $
* $Id: ramkomd.c,v 0.
60
1996/07/2
9 13:17:10
ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -31,7 +31,7 @@
* It has grown! /ceder
*/
static
char
*
rcsid
=
"$Id: ramkomd.c,v 0.
59
1996/07/2
8 23:43:39
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: ramkomd.c,v 0.
60
1996/07/2
9 13:17:10
ceder Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
...
...
@@ -181,6 +181,7 @@ init_data_base(const char *dir_base)
static
void
sighandler_hup
(
int
sig
)
{
signal
(
SIGHUP
,
sighandler_hup
);
log
(
"Signal HUP received. Shutting down server.
\n
"
);
go_and_die
=
TRUE
;
}
...
...
@@ -206,6 +207,8 @@ sighandler_usr2 (int sig)
{
int
child
;
signal
(
SIGUSR2
,
sighandler_usr2
);
log
(
"Signal USR2 received - will dump core now. (Check that child dies.)
\n
"
);
if
((
child
=
fork
())
==
0
)
{
...
...
Write
Preview
Supports
Markdown
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