Commit 4d53484
authored
When the environment lacks libgcc_s.so.1, the program will abort
when using the pthread_cancel function.
When executing auditd -s enable, the parent process will hang at
the become_daemon function waiting for the child process to
write to init_pipe[1]. The child process calls shutdown_events
at line 972 in auditd.c, which in turn calls pthread_cancel. Due
to the absence of libgcc_s.so.1 in the environment, the child
process is terminated here, and the parent process continues to
wait because it did not receive the write to init_pipe[1] from
the child process, causing the program to hang.
Therefore, before calling shutdown_events, the parent process
should be notified that it has already failed to ensure the
parent process exits promptly.
Signed-off-by: Yan Zhu <zhuyan34@huawei.com>
1 parent bf8f2b3 commit 4d53484
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| 972 | + | |
972 | 973 | | |
973 | 974 | | |
974 | 975 | | |
975 | 976 | | |
976 | | - | |
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
| |||
0 commit comments