Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Version 1.3.8 (unreleased)
- Fix segfault calling setproctitle() after clearenv() on Python 3.15
(issue #157).
- Add support for riscv64 (issue #156).

- Add support for HP-UX (PR #162).

Version 1.3.7
-------------
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ platforms:
- BSD
- MacOS X
- Windows
- HP-UX (best-effort basis)

Note that on Windows there is no way to change the process string:
what the module does is to create a *Named Object* whose value can be read
using a tool such as `Process Explorer`_ (contribution of a more useful tool
to be used together with ``setproctitle`` would be well accepted).

The module can probably work on HP-UX, but I haven't found any to test with.
It is unlikely that it can work on Solaris instead.

.. _Process Explorer: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
define_macros["HAVE_SETPROCTITLE"] = 1
define_macros["HAVE_PS_STRING"] = 1

# NOTE: the module may work on HP-UX using pstat
# thus setting define_macros['HAVE_SYS_PSTAT_H']
# see http://www.noc.utoronto.ca/~mikep/unix/HPTRICKS
# But I have none handy to test with.
elif sys.platform.startswith("hp-ux"):
define_macros["HAVE_SYS_PSTAT_H"] = 1
define_macros["HAVE_PSTAT"] = 1

mod_spt = Extension(
"setproctitle._setproctitle",
Expand Down
2 changes: 1 addition & 1 deletion src/spt_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ bool update_process_title = true;
* (newer BSD systems)
* PS_USE_PSTAT
* use the pstat(PSTAT_SETCMD, )
* (HPUX)
* (HP-UX)
* PS_USE_PS_STRINGS
* assign PS_STRINGS->ps_argvstr = "string"
* (some BSD systems)
Expand Down