From e1ab9b7167c3d89c06a1da0811566aa8d6e38e38 Mon Sep 17 00:00:00 2001 From: hp Date: Tue, 28 Aug 2001 12:50:36 +0000 Subject: Add changes to clarify that you have to use the machine name with the PID hint --- wm-spec/wm-spec.sgml | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/wm-spec/wm-spec.sgml b/wm-spec/wm-spec.sgml index aa52e4a..1440d3f 100644 --- a/wm-spec/wm-spec.sgml +++ b/wm-spec/wm-spec.sgml @@ -788,6 +788,14 @@ window. This MAY be used by the Window Manager to kill windows which do not respond to the _NET_WM_PING protocol. +If _NET_WM_PID is set, the ICCCM-specified property WM_CLIENT_MACHINE +MUST also be set. While the ICCCM only requests that WM_CLIENT_MACHINE is set + to a string that forms the name of the machine running the client as +seen from the machine running the server conformance to this +specification requires that WM_CLIENT_MACHINE be set to the fully-qualified domain +name of the client's host. + + See also the implementation notes on killing hung processes. @@ -1093,7 +1101,46 @@ was the frame for this window. Killing Hung Processes -If processes fail to respond to the _NET_WM_PING protocol _NET_WM_PID may be used in combination with the ICCCM specified WM_CLIENT_MACHINE(STRING) to attempt to kill a process. +If processes fail to respond to the _NET_WM_PING protocol _NET_WM_PID may be +used in combination with the ICCCM specified WM_CLIENT_MACHINE to +attempt to kill a process. + + + +WM_CLIENT_MACHINE must be set to the fully-qualified domain name of the client's +host. This would normally be retrieved using gethostname(2). When gethostname() +is not available on the client's platform implementors may use the value of the +nodename field of struct utsname as returned by uname(2). An example of how to +retrieve a value for WM_CLIENT_MACHINE: + + + = maxlen) len = maxlen - 1; + strncpy (buf, name.nodename, len); + buf[len] = '\0'; + + return len; +#endif +} +]]> @@ -1166,6 +1213,17 @@ OR OTHER DEALINGS IN THE SOFTWARE. Change history + + Changes since 1.1 + + + Changed WM_CLIENT_NAME(STRING) from suggested to required for _NET_WM_PID. + + + Specification and sample code for the content of WM_CLIENT_NAME(STRING). + + + Changes since 1.0 -- cgit v1.2.3-70-g09d2