Commit 404d166
sdap_select_principal_from_keytab_sync: waitpid() synchronously
Without this change the ldap_child process started by this function ends up
in the <defunct> state. kernel trace hints that the process isn't fully
finished by the time waitpid is called:
13126 sssd_be CALL wait4(13127,0,0x1<WNOHANG>,0)
13126 sssd_be RET wait4 0
waitpid(ldap_child) failed, process might be leaking
According to man waitpid(3), the function returns 0 when passed WNOHANG and
there is no child process that can be reported as exited. Omitting WNOHANG
fixes the issue.
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>1 parent c6dc4d7 commit 404d166
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
0 commit comments