]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Revert "utils: add function for running program"
authorRay Strode <rstrode@redhat.com>
Thu, 31 May 2018 14:51:42 +0000 (10:51 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 31 May 2018 14:52:34 +0000 (10:52 -0400)
This reverts commit 0faf4c82bf69709c9de8a6fa2bc7aa2eedf9510b.

src/libply/ply-utils.c
src/libply/ply-utils.h

index 9d2e6ff693ae6982f6c42ec25092fa0edd771f70..89e37e932b19ef4a3e14fcf2b2966f23b8dd9227 100644 (file)
@@ -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: */
index 19c5f90df9bab39242cf9272952399721b02e1e7..c46603eec6da9c644fba107052c50ce949f77e1a 100644 (file)
@@ -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