Exit with exit code 10 if pkexec fails

This commit is contained in:
dec05eba
2023-07-22 23:12:08 +02:00
parent 9ca5b8ec3a
commit d45597e104
7 changed files with 24 additions and 11 deletions

View File

@@ -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) {