Home
last modified time | relevance | path

Searched refs:getpid_cached (Results 1 – 25 of 55) sorted by relevance

123

/systemd-251/src/test/ !
Dtest-log.c31 "MESSAGE=Waldo PID="PID_FMT" (no errno)", getpid_cached(), in test_log_struct()
36 LOG_MESSAGE("Waldo PID="PID_FMT" (no errno)", getpid_cached()), in test_log_struct()
40 LOG_MESSAGE("Waldo PID="PID_FMT": %m (normal)", getpid_cached()), in test_log_struct()
44 LOG_MESSAGE("Waldo PID="PID_FMT": %m (synthetic)", getpid_cached()), in test_log_struct()
48 LOG_MESSAGE("Foobar PID="PID_FMT, getpid_cached()), in test_log_struct()
Dtest-signal-util.c128 assert_se(kill(getpid_cached(), SIGINT) >= 0); in TEST()
130 assert_se(kill(getpid_cached(), SIGUSR1) >= 0); in TEST()
131 assert_se(kill(getpid_cached(), SIGUSR2) >= 0); in TEST()
132 assert_se(kill(getpid_cached(), SIGTERM) >= 0); in TEST()
133 assert_se(kill(getpid_cached(), SIGPIPE) >= 0); in TEST()
Dtest-cgroup.c76 assert_se(cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, getpid_cached(), &path) == 0); in TEST()
82 assert_se(cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, getpid_cached(), &path) == 0); in TEST()
88 assert_se(cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, getpid_cached(), &path) == 0); in TEST()
Dtest-tmpfiles.c31 assert_se(asprintf(&cmd, "ls -l /proc/"PID_FMT"/fd/%d", getpid_cached(), fd) > 0); in TEST()
41 assert_se(asprintf(&cmd2, "ls -l /proc/"PID_FMT"/fd/%d", getpid_cached(), fd2) > 0); in TEST()
Dtest-process-util.c199 assert_se(pid_is_unwaited(getpid_cached())); in TEST()
216 assert_se(pid_is_alive(getpid_cached())); in TEST()
628 TEST(getpid_cached) { in TEST() argument
633 b = getpid_cached(); in TEST()
644 b = getpid_cached(); in TEST()
652 e = getpid_cached(); in TEST()
680 (void) getpid_cached(); in TEST()
Dtest-env-util.c398 assert_se(p == getpid_cached()); in TEST()
404 assert_se(p == getpid_cached()); in TEST()
Dtest-compress-benchmark.c159 arg_start = getpid_cached(); in main()
/systemd-251/src/basic/ !
Dprocess-util.c65 if (pid == 0 || pid == getpid_cached()) in get_process_state()
95 if (pid == 0 || pid == getpid_cached()) { in get_process_comm()
409 …if (IN_SET(pid, 0, 1) || pid == getpid_cached()) /* pid 1, and we ourselves certainly aren't a ker… in is_kernel_thread()
551 if (pid == 0 || pid == getpid_cached()) { in get_process_uid()
561 if (pid == 0 || pid == getpid_cached()) { in get_process_gid()
573 if (pid == 0 || pid == getpid_cached()) in get_process_cwd()
639 if (pid == 0 || pid == getpid_cached()) { in get_process_ppid()
891 if (pid == 0 || pid == getpid_cached()) { in getenv_for_pid()
959 return ppid == getpid_cached(); in pid_is_my_child()
971 if (pid == getpid_cached()) in pid_is_unwaited()
[all …]
Dlog.c142 if (getpid_cached() == 1) in create_log_socket()
279 if (getpid_cached() == 1 || in log_open()
432 if (errno == EIO && getpid_cached() == 1) { in write_to_console()
477 xsprintf(header_pid, "["PID_FMT"]: ", getpid_cached()); in write_to_syslog()
539 xsprintf(header_pid, "["PID_FMT"]: ", getpid_cached()); in write_to_kmsg()
1174 if (getpid_cached() == 1) in should_parse_proc_cmdline()
1193 return getpid_cached() == p; in should_parse_proc_cmdline()
1395 unit_fmt = getpid_cached() == 1 ? "UNIT=%s" : "USER_UNIT=%s"; in log_syntax_internal()
1486 return getpid_cached() == 1 ? LOG_EMERG : LOG_ERR; in log_emergency_level()
Dprocess-util.h133 pid_t getpid_cached(void);
/systemd-251/src/journal/ !
Djournald.c60 …ebug("systemd-journald running as PID "PID_FMT" for namespace '%s'.", getpid_cached(), server.name… in main()
62 … log_debug("systemd-journald running as PID "PID_FMT" for the system.", getpid_cached()); in main()
125 …ebug("systemd-journald stopped as PID "PID_FMT" for namespace '%s'.", getpid_cached(), server.name… in main()
127 … log_debug("systemd-journald stopped as PID "PID_FMT" for the system.", getpid_cached()); in main()
Dfuzz-journald-native-fd.c32 .pid = getpid_cached(), in LLVMFuzzerTestOneInput()
/systemd-251/src/core/ !
Dmain.c832 if (getpid_cached() == 1) in parse_argv()
1044 if (getpid_cached() != 1) in parse_argv()
1053 if (optind < argc && getpid_cached() != 1) in parse_argv()
1392 if (getpid_cached() != 1) in fixup_environment()
1425 if (getpid_cached() == 1) in redirect_telinit()
1584 if (getpid_cached() != 1) in apply_clock_update()
1601 if (getpid_cached() != 1) in cmdline_take_random_seed()
1624 if (getpid_cached() != 1) in initialize_coredump()
1646 if (getpid_cached() != 1) in initialize_core_pattern()
2490 if (getpid_cached() == 1 && in safety_checks()
[all …]
Dcrash-handler.c50 if (getpid_cached() != 1) in crash()
/systemd-251/src/portable/ !
Dportabled.c156 log_debug("systemd-portabled running as pid " PID_FMT, getpid_cached()); in run()
164 log_debug("systemd-portabled stopped as pid " PID_FMT, getpid_cached()); in run()
/systemd-251/src/libsystemd/sd-daemon/ !
Dsd-daemon.c58 if (getpid_cached() != pid) { in sd_listen_fds()
487 (pid != 0 && pid != getpid_cached()) || in sd_pid_notify_with_fds()
519 ucred->pid = pid != 0 ? pid : getpid_cached(); in sd_pid_notify_with_fds()
658 if (getpid_cached() != pid) { in sd_watchdog_enabled()
/systemd-251/src/libsystemd/sd-event/ !
Dtest-event.c356 assert_se(sigqueue(getpid_cached(), SIGRTMIN+2, (union sigval) { .sival_int = 1 }) >= 0); in TEST()
357 assert_se(sigqueue(getpid_cached(), SIGRTMIN+3, (union sigval) { .sival_int = 2 }) >= 0); in TEST()
358 assert_se(sigqueue(getpid_cached(), SIGUSR2, (union sigval) { .sival_int = 3 }) >= 0); in TEST()
359 assert_se(sigqueue(getpid_cached(), SIGRTMIN+3, (union sigval) { .sival_int = 4 }) >= 0); in TEST()
360 assert_se(sigqueue(getpid_cached(), SIGUSR2, (union sigval) { .sival_int = 5 }) >= 0); in TEST()
/systemd-251/src/machine/ !
Dmachined.c352 log_debug("systemd-machined running as pid "PID_FMT, getpid_cached()); in run()
360 log_debug("systemd-machined stopped as pid "PID_FMT, getpid_cached()); in run()
/systemd-251/src/shutdown/ !
Dshutdown.c348 if (getpid_cached() == 1) in main()
359 if (getpid_cached() != 1) { in main()
/systemd-251/src/timesync/ !
Dtimesyncd.c146 log_debug("systemd-timesyncd running as pid " PID_FMT, getpid_cached()); in run()
/systemd-251/src/shared/ !
Dserialize.c204 path = getpid_cached() == 1 ? "/run/systemd" : "/tmp"; in open_serialization_fd()
Dcgroup-setup.c343 pid = getpid_cached(); in cg_attach()
500 my_pid = getpid_cached(); in cg_migrate()
Dcondition.c399 if (getpid_cached() == 1) in condition_test_user()
456 if (getpid_cached() == 1) in condition_test_group()
1020 r = cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, getpid_cached(), &root_scope); in condition_test_psi()
Dtests.c242 r = sd_bus_message_append(m, "(sv)", "PIDs", "au", 1, (uint32_t) getpid_cached()); in allocate_scope()
/systemd-251/src/activate/ !
Dactivate.c165 r = strv_extendf(&envp, "LISTEN_PID=" PID_FMT, getpid_cached()); in exec_process()

123