-
Notifications
You must be signed in to change notification settings - Fork 43
Kill with grace #367
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
Open
lionel-
wants to merge
77
commits into
safe-cleanup
Choose a base branch
from
kill-grace
base: safe-cleanup
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Kill with grace #367
Changes from 4 commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
5ac96f6
Extract `c_processx_wait()`
lionel- 42699d4
Implement `kill(grace = )`
lionel- dcb71f5
Add `cleanup_grace` argument to `run()`
lionel- 11d37ca
Add `cleanup_grace` argument to process ctor
lionel- e83a48c
Use `cleanup_grace` in finaliser
lionel- b586b12
Poll for completion of cleanup process in unit test
lionel- b693822
Rbuildignore test library
lionel- da4cf5a
Ignore SIGPIPE while writing to fd
gaborcsardi a7b9ea9
Avoid strict prototype warnings on Windows
gaborcsardi b58e1cc
Update NEWS
gaborcsardi 49432ca
Remove win unicode tests
gaborcsardi 25cdd52
Merge branch 'main' of https://github.com/r-lib/processx
gaborcsardi 2d09d47
Increment version number to 3.8.2
gaborcsardi 25812a1
Increment version number to 3.8.2.9000
gaborcsardi 4125a2e
RStudio -> Posit in authors
gaborcsardi 53759eb
usethis::use_tidy_coc()
gaborcsardi 2247366
Use pak::pak("r-lib/processx") in README
gaborcsardi 25520ce
usethis::use_mit_license()
gaborcsardi 5e0e880
usethis::use_tidy_description()
gaborcsardi d72e110
usethis::use_tidy_github_actions()
gaborcsardi 570d663
Fix printf format string
gaborcsardi a539803
GHA: test on R-devel Windows
gaborcsardi e516059
Fix more printf() format strings, on Windows
gaborcsardi 1ea63a1
usethis::use_github_links()
gaborcsardi f463f83
Redocument
gaborcsardi b57dc28
Increment version number to 3.8.3
gaborcsardi bb1fa3d
Increment version number to 3.8.3.9000
gaborcsardi 0362a37
Add a native gcov_flush function
gaborcsardi 861aeff
Add COPYRIGHTS file
gaborcsardi f0b7713
Update NEWS for release
gaborcsardi 355747c
More copyrights updates
gaborcsardi 956591a
Increment version number to 3.8.4
gaborcsardi 5bb11ea
Increment version number to 3.8.4.9000
gaborcsardi 6d12d99
CI: test on R-nect Windows
gaborcsardi da1c65d
Skip some failing tests temporarily
gaborcsardi 95ba3aa
Skip the correct tests on Windows
gaborcsardi c3ab227
Do not use R's RNG to generate tree id
gaborcsardi c8ed816
Use latest GHA workflows
gaborcsardi e61bf67
Update test snapshots for new syntax highlighting
gaborcsardi 3f9af6d
Fix test snapshots with both old and new cli
gaborcsardi f080ee0
Skip some tests in covr
gaborcsardi 3d769d3
Skip a fragile test on GHA
gaborcsardi bd51c8b
Merge branch 'main' into fix/gha-latest
gaborcsardi d6a81d9
Merge pull request #387 from r-lib/fix/gha-latest
gaborcsardi b0a2a3e
Strip shared lib on Linux, if $_R_SHLIB_STRIP_=true
gaborcsardi 3cbce84
Merge pull request #388 from r-lib/fix/strip-linux
gaborcsardi fb3b4d8
Update NEWS before release
gaborcsardi f084ec9
Fix curl fd poll tests
gaborcsardi 6ca5da0
GHA: use debug-shell action
gaborcsardi bab6d3f
Simplify curl fd poll tests
gaborcsardi 3bd3c85
Increment version number to 3.8.5
gaborcsardi 118704a
Increment version number to 3.8.5.9000
gaborcsardi e190b4a
Creating a pipe does not use the RNG, on Windows
gaborcsardi a82463e
Make process cloneable, to avoid warnings from R6
gaborcsardi f542080
Update NEWS
gaborcsardi 511dc4a
Add r-hub-ci workflow
gaborcsardi d762515
Increment version number to 3.8.6
gaborcsardi 1c9500a
Increment version number to 3.8.6.9000
gaborcsardi dd80b0f
Make $finalize() private
gaborcsardi f03ce19
Upkeep 2025
gaborcsardi 0b1e094
usethis::use_testthat(3)
gaborcsardi 8f228ca
usethis:::use_codecov_badge("r-lib/processx")
gaborcsardi 7178687
Add Valgrind suppression file for R-hub
gaborcsardi 91b3949
Add ROR for Posit in DESCRIPTION
gaborcsardi 689ba70
Use air
gaborcsardi 2418198
Extend Valgrind suppression file
gaborcsardi 2bbdf2d
Fix DESCRIPTION typo
gaborcsardi 136e3f8
Switch to expect_snapshot(error = TRUE)
gaborcsardi d3589db
usethis::use_mit_license()
gaborcsardi b0c010b
usethis::use_tidy_description()
gaborcsardi 8778aa7
usethis::use_tidy_github_actions()
gaborcsardi 8524951
Fix platform-specific snapshot tests
gaborcsardi b2bae39
Add Windows test snapshots
gaborcsardi df05796
Merge pull request #397 from r-lib/upkeep-2025-04
gaborcsardi 6f1ee01
Merge commit 'df0579681e7953e52174614fba8836b9a9c0afbc'
gaborcsardi 86528ec
Code formatting
gaborcsardi 200d27c
Adjust Linux test snapshots
gaborcsardi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef _WIN32 | ||
|
||
#include <Rinternals.h> | ||
#include <R_ext/Rdynload.h> | ||
#include <signal.h> | ||
|
||
void R_init_sigtermignore(DllInfo *dll) { | ||
signal(SIGTERM, SIG_IGN); | ||
} | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I wrote this branch I've added sigterm handlers to
px
in r-lib/ps#149. We could use this instead of this client lib for our unit tests by depending on the dev version of ps.