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

Improved job status notifications for SIGSTOP/SIGCONT #176

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

caseman
Copy link

@caseman caseman commented Nov 18, 2020

Fix for: #174

  • Job notification on SIGCONT for supporting platforms
  • run_process() no longer forks twice for background jobs, allowing detection of SIGSTOP/SIGCONT
  • Added jobs.sh test script

@caseman caseman mentioned this pull request Nov 18, 2020
return job_wait_process(process);
// Something went wrong
fprintf(stderr, "%s: %s\n", argv[0], strerror(errno));
exit(127);
Copy link
Author

Choose a reason for hiding this comment

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

This change is smaller than it looks. Now the fork is optional, and the code inside the child codepath is outdented.

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.

1 participant