Any idea why /usr/sbin/daemon is not starting processes?

I had to deal with this issue because Sonarr/Radarr/Bazarr/Prowlarr were not starting after updating from 13.2 to 13.4. The problem is with /usr/sbin/daemon in 13.4, the new version does not work as expected when the options -p and -P are used. The pid file for the service is created but with zero bytes, so the process is not started due to this. Because I could not find any other solution I just copied the /usr/sbin/daemon from 13.2 to my 13.4 jail, I put the file somewhere else (/usr/local/bin/daemon.old) and changed the rc.d script for those services to use the old daemon.old binary. I know this is a big hack but it is the only way I found. Staying in 13.2 was not possible for me because there is already an incompatibility with libinotify and some mono based services won’t run, i.e. jackett is currently broken in 13.2 and 13.4, but as long as Prowlarr works it is not a big problem.