Skip to content

Commit

Permalink
first attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Dec 18, 2023
1 parent ad2f0bf commit 34ad6d2
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 47 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/bsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,41 @@ jobs:
make install
make test
make test-memleaks
openbsd:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run tests
uses: vmactions/openbsd-vm@v1
with:
usesh: true
prepare: |
set -e
pkg_add gcc python3
run: |
set -e
make install-pip
python3 -m pip install --user setuptools
make install
make test
make test-memleaks
netbsd:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run tests
uses: vmactions/netbsd-vm@v1
with:
usesh: true
prepare: |
set -e
/usr/sbin/pkg_add -v pkgin
pkgin update
pkgin -y install python311-* py311-setuptools-* gcc12-*
run: |
set -e
make install-pip PYTHON=python3.11
python3.11 -m pip install --user setuptools
make install PYTHON=python3.11
make test PYTHON=python3.11
make test-memleaks PYTHON=python3.11
# openbsd:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# - name: Run tests
# uses: vmactions/openbsd-vm@v1
# with:
# usesh: true
# prepare: |
# set -e
# pkg_add gcc python3
# run: |
# set -e
# make install-pip
# python3 -m pip install --user setuptools
# make install
# make test
# make test-memleaks
# netbsd:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# - name: Run tests
# uses: vmactions/netbsd-vm@v1
# with:
# usesh: true
# prepare: |
# set -e
# /usr/sbin/pkg_add -v pkgin
# pkgin update
# pkgin -y install python311-* py311-setuptools-* gcc12-*
# run: |
# set -e
# make install-pip PYTHON=python3.11
# python3.11 -m pip install --user setuptools
# make install PYTHON=python3.11
# make test PYTHON=python3.11
# make test-memleaks PYTHON=python3.11
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
archs: "x86_64 i686"
- os: macos-12
archs: "x86_64 arm64"
# - os: ubuntu-latest
# archs: "x86_64 i686"
# - os: macos-12
# archs: "x86_64 arm64"
- os: windows-2019
archs: "AMD64"
- os: windows-2019
archs: "x86"
# - os: windows-2019
# archs: "x86"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand Down
6 changes: 3 additions & 3 deletions psutil/arch/windows/proc_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ psutil_check_phandle(HANDLE hProcess, DWORD pid, int check_exit_code) {
if (GetExitCodeProcess(hProcess, &exitCode)) {
// XXX - maybe STILL_ACTIVE is not fully reliable as per:
// http://stackoverflow.com/questions/1591342/#comment47830782_1591379
if (exitCode == STILL_ACTIVE) {
return hProcess;
}
// if (exitCode == STILL_ACTIVE) {
// return hProcess;
// }
if (psutil_pid_in_pids(pid) == 1) {
return hProcess;
}
Expand Down

0 comments on commit 34ad6d2

Please sign in to comment.