Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
0cea4230
Commit
0cea4230
authored
Jun 9, 1996
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
recursive signal calling now fixed
Rev: src/lpc_signal.c:1.11
parent
28119b1d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lpc_signal.c
+10
-1
10 additions, 1 deletion
src/lpc_signal.c
with
10 additions
and
1 deletion
src/lpc_signal.c
+
10
−
1
View file @
0cea4230
...
...
@@ -10,6 +10,7 @@
#include
"add_efun.h"
#include
"macros.h"
#include
"backend.h"
#include
"error.h"
#include
<signal.h>
#include
<sys/wait.h>
...
...
@@ -228,9 +229,13 @@ static RETSIGTYPE receive_signal(int signum)
#endif
}
static
int
signalling
=
0
;
static
void
unset_signalling
(
void
*
notused
)
{
signalling
=
0
;
}
void
check_signals
()
{
static
int
signalling
=
0
;
ONERROR
ebuf
;
#ifdef DEBUG
extern
int
d_flag
;
if
(
d_flag
>
5
)
do_debug
(
0
);
...
...
@@ -241,6 +246,8 @@ void check_signals()
int
tmp
=
firstsig
;
signalling
=
1
;
SET_ONERROR
(
ebuf
,
unset_signalling
,
0
);
while
(
lastsig
!=
tmp
)
{
if
(
++
lastsig
==
SIGNAL_BUFFER
)
lastsig
=
0
;
...
...
@@ -250,6 +257,8 @@ void check_signals()
pop_stack
();
}
UNSET_ONERROR
(
ebuf
);
signalling
=
0
;
}
}
...
...
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