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

/sssd-io/src/tools/common/
H A Dsss_process.c56 DEBUG(SSSDBG_MINOR_FAILURE, "Unable to open pid file \"%s\": %s\n",
70 DEBUG(SSSDBG_CRIT_FAILURE, "File \"%s\" contains invalid pid.\n",
76 DEBUG(SSSDBG_CRIT_FAILURE, "File \"%s\" contains no pid.\n",
86 "File \"%s\" contains invalid pid.\n", SSSD_PIDFILE);
108 pid_t pid; local
110 ret = sss_pid(&pid);
115 if (kill(pid, signum) != 0) {
119 signum, pid, strerror(errno));
/sssd-io/src/tests/cwrap/
H A Dtest_become_user.c34 pid_t pid, wpid; local
43 pid = fork();
44 if (pid == 0) {
65 assert_int_not_equal(pid, -1);
67 wpid = waitpid(pid, &status, 0);
68 assert_int_equal(wpid, pid);
H A Dtest_server.c32 static void wait_for_fg_server(pid_t pid) argument
37 assert_int_not_equal(pid, -1);
39 wpid = waitpid(pid, &status, 0);
40 assert_int_equal(wpid, pid);
50 pid_t pid; local
83 pid = (pid_t) (tmp);
86 ret = kill(pid, SIGTERM);
87 fprintf(stderr, "killing %u\n", pid);
97 pid_t pid; local
102 pid
117 pid_t pid; local
139 pid_t pid; local
[all...]
/sssd-io/src/tools/
H A Dsss_userdel.c78 pid_t pid, child_pid; local
88 pid = fork();
89 if (pid == 0) {
98 if (pid == -1) {
105 while((child_pid = waitpid(pid, &status, 0)) > 0) {
H A Dtools_util.c521 pid_t pid, child_pid; local
538 pid = fork();
539 if (pid == 0) {
546 if (pid == -1) {
553 while((child_pid = waitpid(pid, &status, 0)) > 0) {
/sssd-io/src/tests/
H A Dcommon_dbus.c33 pid_t pid; member in struct:mock_server
67 verify_eq (waitpid(mock->pid, &child_status, 0), mock->pid);
158 mock->pid = fork();
159 if (mock->pid == 0) {
164 verify_neq (mock->pid, -1);
H A Dstress-tests.c211 pid_t pid; local
288 pid = fork();
289 if (pid == -1) {
296 } else if ( pid == 0 ) {
/sssd-io/src/util/
H A Dfind_uid.c62 static errno_t get_uid_from_pid(const pid_t pid, uid_t *uid) argument
75 ret = snprintf(path, PATHLEN, "/proc/%d/status", pid);
174 static errno_t name_to_pid(const char *name, pid_t *pid) argument
189 DEBUG(SSSDBG_CRIT_FAILURE, "pid string contains extra characters.\n");
194 DEBUG(SSSDBG_CRIT_FAILURE, "pid out of range.\n");
198 *pid = num;
214 pid_t pid = -1; local
230 ret = name_to_pid(dirent->d_name, &pid);
236 ret = get_uid_from_pid(pid, &uid);
H A Dserver.c83 pid_t pid, cpid; local
88 pid = fork();
89 if (pid != 0) {
99 cpid = waitpid(pid, &status, 0);
108 kill(pid, SIGKILL);
146 pid_t pid; local
155 file = talloc_asprintf(NULL, "%s/%s.pid", path, name);
177 /* let's check the pid */
178 pid = (pid_t)atoi(pid_str);
179 if (pid !
[all...]
H A Dchild_common.c44 pid_t pid; member in struct:sss_child_ctx
102 key.ul = child_ctx->pid;
116 pid_t pid,
131 child->pid = pid;
137 key.ul = pid;
172 key.ul = child_ctx->pid;
182 child_ctx->cb(child_ctx->pid, cb_pvt->wait_status, child_ctx->pvt);
203 pid_t pid; local
211 pid
114 sss_child_register(TALLOC_CTX *mem_ctx, struct sss_sigchild_ctx *sigchld_ctx, pid_t pid, sss_child_fn_t cb, void *pvt, struct sss_child_ctx **child_ctx) argument
267 pid_t pid; member in struct:sss_child_ctx_old
277 child_handler_setup(struct tevent_context *ev, int pid, sss_child_callback_t cb, void *pvt, struct sss_child_ctx_old **_child_ctx) argument
[all...]
/sssd-io/src/providers/ldap/
H A Dsdap_child_helpers.c50 pid_t pid; member in struct:sdap_child
91 pid_t pid; local
109 pid = fork();
111 if (pid == 0) { /* child */
118 } else if (pid > 0) { /* parent */
119 child->pid = pid;
127 ret = child_handler_setup(ev, pid, child_callback, req, NULL);
451 state->child->pid);
453 ret = kill(state->child->pid, SIGKIL
[all...]
/sssd-io/src/providers/proxy/
H A Dproxy.h124 pid_t pid; member in struct:proxy_child_ctx
135 pid_t pid; member in struct:pc_init_ctx
H A Dproxy_auth.c150 kill(init_ctx->pid, SIGKILL);
169 pid_t pid; local
194 pid = fork();
195 if (pid < 0) {
203 if (pid == 0) { /* child */
216 state->pid = pid;
272 DEBUG(SSSDBG_TRACE_LIBS, "Waiting for child [%d].\n", init_ctx->pid);
275 ret = waitpid(init_ctx->pid, &child_status, WNOHANG);
325 pid_t *pid,
324 proxy_child_init_recv(struct tevent_req *req, pid_t *pid, struct sbus_connection **conn) argument
348 pid_t pid; member in struct:proxy_child_sig_ctx
511 pid_t pid; member in struct:proxy_conv_ctx
514 proxy_pam_conv_send(TALLOC_CTX *mem_ctx, struct proxy_auth_ctx *auth_ctx, struct sbus_connection *conn, struct pam_data *pd, pid_t pid) argument
[all...]
/sssd-io/src/tests/cmocka/
H A Dtest_child_common.c453 void sss_child_cb(int pid, int wait_status, void *pvt);
491 void sss_child_cb(int pid, int wait_status, void *pvt) argument
/sssd-io/src/providers/krb5/
H A Dkrb5_child_handler.c432 pid_t pid; local
459 pid = fork();
461 if (pid == 0) { /* child */
470 } else if (pid > 0) { /* parent */
471 state->child_pid = pid;
479 ret = child_handler_setup(state->ev, pid, NULL, NULL, NULL);
/sssd-io/src/providers/ipa/
H A Dipa_selinux.c692 pid_t pid; local
711 pid = fork();
713 if (pid == 0) { /* child */
719 } else if (pid > 0) { /* parent */
727 ret = child_handler_setup(state->ev, pid, NULL, NULL, NULL);
/sssd-io/src/monitor/
H A Dmonitor.c117 pid_t pid; member in struct:mt_svc
482 svc->pid, WEXITSTATUS(wait_status));
486 svc->pid, WTERMSIG(wait_status));
489 "Child [%d] did not exit cleanly\n", svc->pid);
491 kill(svc->pid, SIGKILL);
569 /* create the pid file if all services are alive */
578 "All services have successfully started, creating pid file\n");
582 "Error creating pidfile: %s/%s.pid! (%d [%s])\n",
596 DEBUG(SSSDBG_MINOR_FAILURE, "Invalid parent pid: %d\n",
1463 pid_t pid; local
2358 mt_svc_exit_handler(int pid, int wait_status, void *pvt) argument
[all...]
/sssd-io/src/providers/ad/
H A Dad_gpo.c4302 pid_t pid; local
4323 pid = fork();
4325 if (pid == 0) { /* child */
4333 } else if (pid > 0) { /* parent */
4334 state->child_pid = pid;
4342 ret = child_handler_setup(state->ev, pid, NULL, NULL, NULL);

Completed in 72 milliseconds