chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
plymouth: use PID file to detect whether ply is running
[elogind.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index fada69cf1a981893f85998ac2da465865a2d0074..a44fea09cfdbb0234a7383c3a0424695964db20a 100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-4188,6
+4188,10
@@
bool nulstr_contains(const char*nulstr, const char *needle) {
return false;
}
+bool plymouth_running(void) {
+ return access("/run/plymouth/pid", F_OK) >= 0;
+}
+
static const char *const ioprio_class_table[] = {
[IOPRIO_CLASS_NONE] = "none",
[IOPRIO_CLASS_RT] = "realtime",