[PATCH weston v4] xwm: tell the shell the pid of the X clients

Bill Spitzak spitzak at gmail.com
Tue Jan 27 17:03:06 PST 2015


On 01/27/2015 12:00 PM, Daniel Stone wrote:

> If the hostname's been truncated, then it's not useful for our purposes.

I would think the truncated hostname would provide more information such 
as in an error message. But anyway this could be done this way:

	name[sizeof(name)-1] = 0;
	gethostname(name, sizeof(name));
	/* ignore truncated hostnames: */
	if (name[sizeof(name)-1] != 0) name[0] = 0;


More information about the wayland-devel mailing list