jirka-h / haveged

Entropy daemon ![Continuous Integration](https://github.com/jirka-h/haveged/workflows/Continuous%20Integration/badge.svg)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Fixed with 193b332

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".