Skip to content

Improved job status notifications for SIGSTOP/SIGCONT#176

Open
caseman wants to merge 2 commits intoemersion:masterfrom
caseman:bg-jobs
Open

Improved job status notifications for SIGSTOP/SIGCONT#176
caseman wants to merge 2 commits intoemersion:masterfrom
caseman:bg-jobs

Conversation

@caseman
Copy link
Copy Markdown

@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
Copy Markdown
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