Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: fork observing mechanism #1165

Merged
merged 1 commit into from
Aug 19, 2022
Merged

Add: fork observing mechanism #1165

merged 1 commit into from
Aug 19, 2022

Conversation

Kraemii
Copy link
Member

@Kraemii Kraemii commented Aug 19, 2022

What:
This PR extends the process module and allows to manage forked childs as well sets a limit to the number of forks possible. It also cleans up child processes.

Jira: SC-565

Why:
In order to use IPC some sort of fork observing mechanism is necessary

How:

Checklist:

  • Tests
  • PR merge commit message adjusted

@Kraemii Kraemii requested a review from a team as a code owner August 19, 2022 11:01
@Kraemii Kraemii force-pushed the fork-observing-mechanism branch 2 times, most recently from d9c4d9d to 0b93e26 Compare August 19, 2022 11:05
src/processes.c Outdated Show resolved Hide resolved
src/processes.h Outdated Show resolved Hide resolved
@Kraemii Kraemii force-pushed the fork-observing-mechanism branch 2 times, most recently from 8da0c6b to ef186d5 Compare August 19, 2022 11:41
This PR extends the process module and allows to manage forked childs as well sets a limit to the number of forks possible. It also cleans up child processes.
@Kraemii Kraemii force-pushed the fork-observing-mechanism branch from ef186d5 to da013e9 Compare August 19, 2022 11:42
@Kraemii Kraemii merged commit c72b6df into main Aug 19, 2022
@Kraemii Kraemii deleted the fork-observing-mechanism branch August 19, 2022 14:20
{
int pid;

gvm_log_lock ();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove this? This code was introduced some time ago to avoid deadlock. See PR #491

Kraemii added a commit that referenced this pull request Aug 22, 2022
The PR #1165 contained two major errors. A lock to prevent a deadlock and handling signals in case the module is not initialized
Kraemii added a commit that referenced this pull request Aug 22, 2022
The PR #1165 contained two major errors. A lock to prevent a deadlock and handling signals in case the module is not initialized
Kraemii added a commit that referenced this pull request Aug 22, 2022
The PR #1165 contained two major errors. A lock to prevent a deadlock and handling signals in case the module is not initialized
mergify bot pushed a commit that referenced this pull request Sep 7, 2022
This PR extends the process module and allows to manage forked childs as well sets a limit to the number of forks possible. It also cleans up child processes.

(cherry picked from commit c72b6df)
nichtsfrei pushed a commit that referenced this pull request Sep 7, 2022
This PR extends the process module and allows to manage forked childs as well sets a limit to the number of forks possible. It also cleans up child processes.

(cherry picked from commit c72b6df)
@nichtsfrei nichtsfrei mentioned this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants