weston/xwayland
Bryce Harrington 139fcabe7c xwayland: Improve error checking for strtol call
This updates the error checking for the strtol() call in xwayland's
create_lockfile to match other cases.  C.f. cbc05378 and other recent
patches.

A notable difference here is that the existing error checking was
verifying that exactly 10 digits were being read from the lock file,
but the fact that it's 10 digits is just an implementation detail for
how we're writing it.  The pid could be a shorter number of digits, and
would just be space-padded on the left.

This change allows the file to contain any number of digits, but it
can't be blank, all of the digits must be numeric, and the resulting
number must be within the accepted range.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-08-06 18:19:12 -07:00
..
dnd.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
hash.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
hash.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
launcher.c xwayland: Improve error checking for strtol call 2016-08-06 18:19:12 -07:00
selection.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
window-manager.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
xwayland-api.h xwayland: Grammar fixes 2016-07-07 10:50:20 -07:00
xwayland.h xwayland: make the plugin usable by libweston compositors 2016-07-01 14:34:33 +03:00