Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Utils
KWSys
Commits
ae26c248
Commit
ae26c248
authored
18 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Do not leak global table of processes.
parent
f1a9a346
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ProcessUNIX.c
+9
-3
9 additions, 3 deletions
ProcessUNIX.c
with
9 additions
and
3 deletions
ProcessUNIX.c
+
9
−
3
View file @
ae26c248
...
...
@@ -2213,9 +2213,6 @@ static void kwsysProcessesRemove(kwsysProcess* cp)
newProcesses
.
Processes
[
i
]
=
newProcesses
.
Processes
[
i
+
1
];
}
/* Store the new set in that seen by the signal handler. */
kwsysProcessesUpdate
(
&
newProcesses
);
/* If this was the last process, disable the signal handler. */
if
(
newProcesses
.
Count
==
0
)
{
...
...
@@ -2223,7 +2220,16 @@ static void kwsysProcessesRemove(kwsysProcess* cp)
interrupted. */
while
((
sigaction
(
SIGCHLD
,
&
kwsysProcessesOldSigChldAction
,
0
)
<
0
)
&&
(
errno
==
EINTR
));
/* Free the table of process pointers since it is now empty.
This is safe because the signal handler has been removed. */
newProcesses
.
Size
=
0
;
free
(
newProcesses
.
Processes
);
newProcesses
.
Processes
=
0
;
}
/* Store the new set in that seen by the signal handler. */
kwsysProcessesUpdate
(
&
newProcesses
);
}
}
...
...
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