• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

giampaolo / psutil / 3520
93%

Build:
DEFAULT BRANCH: master
Ran 02 May 2020 10:23PM UTC
Jobs 1
Files 4
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3520

push

travis-ci

web-flow
Process wait() improvements (#1747)

* `Process.wait()` on POSIX now returns an `enum` showing the negative which was used to terminate the process:
```python
>>> import psutil
>>> p = psutil.Process(9891)
>>> p.terminate()
>>> p.wait()
<Negsignal.SIGTERM: -15>
```

* the return value is cached so that the exit code can be retrieved on then next call, mimicking `subprocess.Popen.wait()`
* `Process` object provides more `status` and `exitcode` additional info on `str()` and `repr()`:

```
 >>> proc
 psutil.Process(pid=12739, name='python3', status='terminated', exitcode=<Negsigs.SIGTERM: -15>, started='15:08:20')
```

Extra:
* improved `wait()` doc
* reverted #1736: `psutil.Popen` uses original `subprocess.Popen.wait` method (safer)

44 of 44 new or added lines in 2 files covered. (100.0%)

2191 of 2425 relevant lines covered (90.35%)

0.9 hits per line

Jobs
ID Job ID Ran Files Coverage
3 3520.3 02 May 2020 10:23PM UTC 0
90.35
Travis Job 3520.3
Source Files on build 3520
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3520
  • 42368e6a on github
  • Prev Build on master (#3513)
  • Next Build on master (#3528)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc