Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
srp_daemon: Don't create async_ev_thread if only run once
fd3005f moves the signal handler setup from ibsrpdm path. So, default signal handler will be used when the main pthread send signal SIGINT to pthread async_ev_thread. ibsrpdm will exit with non-zero exit code as default signal handler killed it. ibsrpdm should return with exit code zero, if no error emerged. We should not create async_ev_thread for ibsrpdm. Fixes: fd3005f ("srp_daemon: Move the setup of the wakeup_pipe after openlog") Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Honggang Li <honli@redhat.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
- Loading branch information