Skip to content

Commit

Permalink
Update embedded ps
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Nov 15, 2024
1 parent a0ec42f commit 350e67c
Show file tree
Hide file tree
Showing 30 changed files with 3,540 additions and 236 deletions.
10 changes: 5 additions & 5 deletions src/library/ps/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ps
Title: List, Query, Manipulate System Processes
Version: 1.7.6
Version: 1.8.1
Authors@R: c(
person("Jay", "Loden", role = "aut"),
person("Dave", "Daeschler", role = "aut"),
Expand All @@ -16,19 +16,19 @@ BugReports: https://github.com/r-lib/ps/issues
Depends: R (>= 3.4)
Imports: utils
Suggests: callr, covr, curl, pillar, pingr, processx (>= 3.1.0), R6,
rlang, testthat (>= 3.0.0), webfakes
rlang, testthat (>= 3.0.0), webfakes, withr
Biarch: true
Config/Needs/website: tidyverse/tidytemplate
Config/testthat/edition: 3
Encoding: UTF-8
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
NeedsCompilation: yes
Packaged: 2024-01-18 06:13:01 UTC; gaborcsardi
Packaged: 2024-10-28 21:43:41 UTC; gaborcsardi
Author: Jay Loden [aut],
Dave Daeschler [aut],
Giampaolo Rodola' [aut],
Gábor Csárdi [aut, cre],
Posit Software, PBC [cph, fnd]
Maintainer: Gábor Csárdi <[email protected]>
Repository: CRAN
Date/Publication: 2024-01-18 06:40:02 UTC
Date/Publication: 2024-10-28 22:10:02 UTC
6 changes: 6 additions & 0 deletions src/library/ps/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ S3method(print,with_process_cleanup)
export(CleanupReporter)
export(errno)
export(ps)
export(ps_apps)
export(ps_boot_time)
export(ps_children)
export(ps_cmdline)
Expand All @@ -16,12 +17,16 @@ export(ps_cpu_times)
export(ps_create_time)
export(ps_cwd)
export(ps_descent)
export(ps_disk_io_counters)
export(ps_disk_partitions)
export(ps_disk_usage)
export(ps_environ)
export(ps_environ_raw)
export(ps_exe)
export(ps_find_tree)
export(ps_fs_info)
export(ps_fs_mount_point)
export(ps_fs_stat)
export(ps_get_cpu_affinity)
export(ps_get_nice)
export(ps_gids)
Expand Down Expand Up @@ -61,6 +66,7 @@ export(ps_tty_size)
export(ps_uids)
export(ps_username)
export(ps_users)
export(ps_wait)
export(ps_windows_nice_values)
export(signals)
export(with_process_cleanup)
Expand Down
39 changes: 39 additions & 0 deletions src/library/ps/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
# ps 1.8.1

* ps can now be installed again on unsupported platforms.

# ps 1.8.0

* New `ps_apps()` function to list all running applications on macOS.

* New function `ps_disk_io_counters()` to query disk I/O counters
(#145, @michaelwalshe).

* New `ps_fs_info()` to query information about the file system of one
or more files or directories.

* New `ps_wait()` to start an interruptible wait on multiple processes,
with a timeout (#166).

* `ps_handle()` now allows a numeric (double) scalar as the pid, as long
as its value is integer.

* `ps_send_signal()`, `ps_suspend()`, `ps_resume()`, `ps_terminate()`,
`ps_kill()`, and `ps_interrupt()` can now operate on multiple processes,
if passed a list of process handles.

* `ps_kill()` and `ps_kill_tree()` have a new `grace` argument.
On Unix, if this argument is not zero, then `ps_kill()` first sends a
`TERM` signal, and waits for the processes to quit gracefully, via
`ps_wait()`. The processes that are still alive after the grace period
are then killed with `SIGKILL`.

* `ps_status()` (and thus `ps()`) is now better at getting the correct
status of processes on macOS. This usually requires calling the external
`ps` tool. See `?ps_status()` on how to opt out from the new
behavior (#31).

# ps 1.7.7

* `ps_cpu_times()` values are now correct on newer arm64 macOS.

# ps 1.7.6

* `ps_name()` now does not fail in the rare case when `ps_cmdline()` returns an empty vector (#150).
Expand Down
4 changes: 4 additions & 0 deletions src/library/ps/R/cleancall.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

call_with_cleanup <- function(ptr, ...) {
.Call(cleancall_call, pairlist(ptr, ...), parent.frame())
}
Loading

0 comments on commit 350e67c

Please sign in to comment.