summaryrefslogtreecommitdiff
path: root/src/core/dbus-service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-07-21 10:35:45 +0200
committerGitHub <noreply@github.com>2017-07-21 10:35:45 +0200
commit4b61c8751135c58be043d86b9fef4c8ec7aadf18 (patch)
tree5a0686acb073a0b21620501c7fcf273b0791883c /src/core/dbus-service.c
parent52b1478414067eb9381b413408f920da7f162c6f (diff)
downloadsystemd-4b61c8751135c58be043d86b9fef4c8ec7aadf18.tar.gz
tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396)
As a follow-up for db3f45e2d2586d78f942a43e661415bc50716d11 let's do the same for all other cases where we create a FILE* with local scope and know that no other threads hence can have access to it. For most cases this shouldn't change much really, but this should speed dbus introspection and calender time formatting up a bit.
Diffstat (limited to 'src/core/dbus-service.c')
-rw-r--r--src/core/dbus-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus-service.c b/src/core/dbus-service.c
index 6458ee5c12..a20d4b3b99 100644
--- a/src/core/dbus-service.c
+++ b/src/core/dbus-service.c
@@ -308,7 +308,7 @@ static int bus_service_set_transient_property(
if (!f)
return -ENOMEM;
- fputs("ExecStart=\n", f);
+ fputs_unlocked("ExecStart=\n", f);
LIST_FOREACH(command, c, s->exec_command[SERVICE_EXEC_START]) {
_cleanup_free_ char *a;