chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: fix systemctl help text
[elogind.git]
/
src
/
execute.c
diff --git
a/src/execute.c
b/src/execute.c
index 28baeedcfc44c9ca3c359ef28ff26390a57dc198..d5bb8d3602920510e3fdb4e46db6a6d544f9b612 100644
(file)
--- a/
src/execute.c
+++ b/
src/execute.c
@@
-1213,7
+1213,7
@@
int exec_spawn(ExecCommand *command,
}
if (n_fds > 0)
}
if (n_fds > 0)
- if (asprintf(our_env + n_env++, "LISTEN_PID=%l
lu", (unsigned long
long) getpid()) < 0 ||
+ if (asprintf(our_env + n_env++, "LISTEN_PID=%l
u", (unsigned
long) getpid()) < 0 ||
asprintf(our_env + n_env++, "LISTEN_FDS=%u", n_fds) < 0) {
r = EXIT_MEMORY;
goto fail;
asprintf(our_env + n_env++, "LISTEN_FDS=%u", n_fds) < 0) {
r = EXIT_MEMORY;
goto fail;
@@
-1270,7
+1270,7
@@
int exec_spawn(ExecCommand *command,
if (cgroup_bondings)
cgroup_bonding_install_list(cgroup_bondings, pid);
if (cgroup_bondings)
cgroup_bonding_install_list(cgroup_bondings, pid);
- log_debug("Forked %s as %l
lu", command->path, (unsigned long
long) pid);
+ log_debug("Forked %s as %l
u", command->path, (unsigned
long) pid);
command->exec_status.pid = pid;
command->exec_status.start_timestamp = now(CLOCK_REALTIME);
command->exec_status.pid = pid;
command->exec_status.start_timestamp = now(CLOCK_REALTIME);
@@
-1572,8
+1572,8
@@
void exec_status_dump(ExecStatus *s, FILE *f, const char *prefix) {
return;
fprintf(f,
return;
fprintf(f,
- "%sPID: %l
l
u\n",
- prefix, (unsigned long
long
) s->pid);
+ "%sPID: %lu\n",
+ prefix, (unsigned long) s->pid);
if (s->start_timestamp > 0)
fprintf(f,
if (s->start_timestamp > 0)
fprintf(f,