From: Ray Strode Date: Thu, 31 May 2018 14:51:42 +0000 (-0400) Subject: Revert "utils: add function for running program" X-Git-Tag: 0.9.4~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7627f939597b8b39c802ce4a54722b21c7f0e9e9;p=thirdparty%2Fplymouth.git Revert "utils: add function for running program" This reverts commit 0faf4c82bf69709c9de8a6fa2bc7aa2eedf9510b. --- diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c index 9d2e6ff6..89e37e93 100644 --- a/src/libply/ply-utils.c +++ b/src/libply/ply-utils.c @@ -1015,16 +1015,4 @@ ply_get_device_scale (uint32_t width, 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: */ diff --git a/src/libply/ply-utils.h b/src/libply/ply-utils.h index 19c5f90d..c46603ee 100644 --- a/src/libply/ply-utils.h +++ b/src/libply/ply-utils.h @@ -127,7 +127,6 @@ int ply_get_device_scale (uint32_t width, uint32_t height, uint32_t width_mm, uint32_t height_mm); -bool ply_run_program_in_background (const char *program); #endif