In order to hand off the drm fd to another program we need
to be able to run that other program.
This commit adds an API for running a program with no arguments,
in the background.
return device_scale;
}
+bool
+ply_run_program_in_background (const char *program)
+{
+ pid_t pid;
+ int result;
+ char argv[2] = { program, NULL };
+
+ result = posix_spawn (&pid, program, NULL, NULL, argv, NULL);
+
+ return result == 0;
+}
+
/* vim: set ts=4 sw=4 expandtab autoindent cindent cino={.5s,(0: */
uint32_t height,
uint32_t width_mm,
uint32_t height_mm);
+bool ply_run_program_in_background (const char *program);
#endif