Repeat the haveged command will abort
zjxcliangyun opened this issue · comments
After the haveged service was started, then repeat the haveged command :
/usr/sbin/haveged -w 1024 -v 1 --Foreground
The command will abort.
The reason is that the "sys/entropy/haveged"socket is already used and can not create again, so cmd_listen return -1.
But the program is not care about the error ,then FD_SET will raise abort.
Thanks for reporting it. We now disable command mode when there is another haveged instance already running.
@jirka-h hi, why can't just error_exit when socket_fd < 0? With the community's patch, haveged will be waiting after input "/usr/sbin/haveged -w 1024 -v 1 --Foreground".