intel-gpu-overlay: Improve error message for failure to open an output

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-04-26 10:16:39 +01:00
parent be6e32b925
commit 263da26b9c

View File

@ -903,7 +903,7 @@ int main(int argc, char **argv)
if (ctx.surface == NULL)
ctx.surface = kms_overlay_create(&config, &ctx.width, &ctx.height);
if (ctx.surface == NULL)
return ENOMEM;
return ENXIO;
if (daemonize && daemon(0, 0))
return EINVAL;