Exit with exit code 10 if pkexec fails
This commit is contained in:
@@ -338,7 +338,7 @@ int main(int argc, char **argv) {
|
||||
if(drmSetClientCap(drm.drmfd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1) != 0) {
|
||||
fprintf(stderr, "kms server error: drmSetClientCap DRM_CLIENT_CAP_UNIVERSAL_PLANES failed, error: %s\n", strerror(errno));
|
||||
close(drm.drmfd);
|
||||
return 2;
|
||||
return 10;
|
||||
}
|
||||
|
||||
if(drmSetClientCap(drm.drmfd, DRM_CLIENT_CAP_ATOMIC, 1) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user