Searched defs:pid (Results 1 - 25 of 89) sorted by relevance

1234

/systemd/src/import/
H A Dimport-common.c75 pid_t pid; local
84 pid = fork();
85 if (pid < 0)
88 if (pid == 0) {
148 *ret = pid;
155 pid_t pid; local
164 pid = fork();
165 if (pid < 0)
168 if (pid == 0) {
222 *ret = pid;
[all...]
/systemd/src/nspawn/
H A Dnspawn-stub-pid1.c41 pid_t pid; local
50 pid = fork();
51 if (pid < 0)
52 return log_error_errno(errno, "Failed to fork child pid: %m");
54 if (pid == 0) {
99 if (si.si_pid == pid || current_usec >= quit_usec) {
111 if (si.si_pid == pid && si.si_code == CLD_EXITED)
164 /* (void) kill_and_sigcont(pid, SIGTERM); */
H A Dnspawn-cgroup.c32 int chown_cgroup(pid_t pid, uid_t uid_shift) { argument
38 r = cg_pid_get_path(NULL, pid, &path);
67 int sync_cgroup(pid_t pid, bool unified_requested) { argument
69 char tree[] = "/tmp/unifiedXXXXXX", pid_string[DECIMAL_STR_MAX(pid) + 1];
86 r = cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, pid, &cgroup);
88 return log_error_errno(r, "Failed to get control group of " PID_FMT ": %m", pid);
108 sprintf(pid_string, PID_FMT, pid);
121 int create_subcgroup(pid_t pid, bool unified_requested) { argument
151 r = cg_create_and_attach(SYSTEMD_CGROUP_CONTROLLER, child, pid);
H A Dnspawn-register.c31 pid_t pid,
65 (uint32_t) pid,
90 (uint32_t) pid,
187 int terminate_machine(pid_t pid) { argument
207 (uint32_t) pid);
29 register_machine( const char *machine_name, pid_t pid, const char *directory, sd_id128_t uuid, int local_ifindex, const char *slice, CustomMount *mounts, unsigned n_mounts, int kill_signal, char **properties, bool keep_unit, const char *service) argument
H A Dnspawn-setuid.c36 pid_t pid; local
45 pid = fork();
46 if (pid < 0)
48 else if (pid == 0) {
84 *rpid = pid;
100 pid_t pid; local
117 fd = spawn_getent("passwd", user, &pid);
139 wait_for_terminate_and_warn("getent passwd", pid, true);
201 fd = spawn_getent("initgroups", user, &pid);
223 wait_for_terminate_and_warn("getent initgroups", pid, tru
[all...]
/systemd/src/quotacheck/
H A Dquotacheck.c77 pid_t pid; local
105 pid = fork();
106 if (pid < 0) {
109 } else if (pid == 0) {
121 r = wait_for_terminate_and_warn("quotacheck", pid, true);
/systemd/src/remount-fs/
H A Dremount-fs.c77 pid_t pid; local
89 pid = fork();
90 if (pid < 0) {
95 if (pid == 0) {
116 k = hashmap_put(pids, PID_TO_PTR(pid), s);
/systemd/src/basic/
H A Daudit-util.c34 int audit_session_from_pid(pid_t pid, uint32_t *id) { argument
47 p = procfs_file_alloca(pid, "sessionid");
64 int audit_loginuid_from_pid(pid_t pid, uid_t *uid) { argument
72 p = procfs_file_alloca(pid, "loginuid");
H A Dsmack-util.c119 int mac_smack_apply_pid(pid_t pid, const char *label) { argument
128 p = procfs_file_alloca(pid, "attr/current");
230 int mac_smack_apply_pid(pid_t pid, const char *label) { argument
/systemd/src/core/
H A Ddbus-scope.c86 uint32_t pid; local
92 while ((r = sd_bus_message_read(message, "u", &pid)) > 0) {
94 if (pid <= 1)
98 r = unit_watch_pid(UNIT(s), pid);
H A Dkillall.c38 static bool ignore_proc(pid_t pid, bool warn_rootfs) { argument
47 if (pid == 1)
50 r = get_process_uid(pid, &uid);
58 p = procfs_file_alloca(pid, "cmdline");
76 r = pid_from_same_root_fs(pid);
80 get_process_comm(pid, &comm);
86 "system instead.", pid, strna(comm));
115 pid_t pid; local
117 pid = waitpid(-1, NULL, WNOHANG);
118 if (pid
177 pid_t pid; local
[all...]
H A Dshutdown.c371 pid_t pid; local
375 pid = fork();
376 if (pid < 0)
378 else if (pid == 0) {
389 wait_for_terminate_and_warn("kexec", pid, true);
/systemd/src/login/
H A Dtest-inhibit.c57 uint32_t uid, pid; local
74 while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) {
75 printf("what=<%s> who=<%s> why=<%s> mode=<%s> uid=<%"PRIu32"> pid=<%"PRIu32">\n",
76 what, who, why, mode, uid, pid);
H A Dinhibit.c80 unsigned int uid, pid; local
100 while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) {
106 get_process_comm(pid, &comm);
113 who, uid, strna(u), pid, strna(comm),
254 pid_t pid; local
268 pid = fork();
269 if (pid < 0) {
274 if (pid == 0) {
287 r = wait_for_terminate_and_warn(argv[optind], pid, true);
H A Dlogind-inhibit.h61 pid_t pid; member in struct:Inhibitor
/systemd/src/bus-proxyd/
H A Dstdio-bridge.c152 pid_t pid; local
166 r = sd_bus_creds_get_pid(creds, &pid);
189 pid, p,
199 pid, comm,
207 pid, p,
/systemd/src/shared/
H A Dpager.c173 pid_t pid; local
194 pid = fork();
195 if (pid < 0)
198 if (pid == 0) {
217 r = wait_for_terminate(pid, &status);
H A Dutmp-wtmp.h35 int utmp_put_dead_process(const char *id, pid_t pid, int code, int status);
36 int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line, int ut_type, const char *user);
59 static inline int utmp_put_dead_process(const char *id, pid_t pid, int code, int status) { argument
62 static inline int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line, int ut_type, const char *user) { argument
H A Dinitreq.h53 int pid; /* Process to send to */ member in struct:init_request_bsd
H A Dmachine-pool.c78 pid_t pid = 0; local
123 pid = fork();
124 if (pid < 0) {
129 if (pid == 0) {
146 r = wait_for_terminate(pid, &si);
152 pid = 0;
181 if (pid > 1)
182 kill_and_sigcont(pid, SIGKILL);
/systemd/src/test/
H A Dtest-capability.c40 pid_t pid = 0; local
42 pid = fork();
43 assert_se(pid >= 0);
44 if (pid == 0) {
47 } else if (pid > 0) {
50 assert_se(waitpid(pid, &status, 0) > 0);
H A Dtest-parse-util.c55 pid_t pid; local
57 r = parse_pid("100", &pid);
59 assert_se(pid == 100);
61 r = parse_pid("0x7FFFFFFF", &pid);
63 assert_se(pid == 2147483647);
65 pid = 65; /* pid is left unchanged on ERANGE. Set to known arbitrary value. */
66 r = parse_pid("0", &pid);
68 assert_se(pid == 65);
70 pid
[all...]
H A Dtest-process-util.c98 pid_t pid; local
100 pid = fork();
101 assert_se(pid >= 0);
102 if (pid == 0) {
107 waitpid(pid, &status, 0);
108 assert_se(!pid_is_unwaited(pid));
115 pid_t pid; local
117 pid = fork();
118 assert_se(pid >= 0);
119 if (pid
[all...]
/systemd/src/bootchart/
H A Dbootchart.h76 int pid; member in struct:ps_struct
/systemd/src/libsystemd/sd-bus/
H A Dtest-bus-chat.c132 pid_t pid = 0; local
154 sd_bus_creds_get_pid(sd_bus_message_get_creds(m), &pid); local
156 log_info("Got message! member=%s pid="PID_FMT" label=%s",
158 pid,

Completed in 176 milliseconds

1234