[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sophie on openbsd - SOLVED
Ok, after much man page reading and searching I have found a solution to this
problem but I'll be darned if I know exactly why...
sophie uses alarm() to setup a timeout for socket connections.
When running the linux sophie executable on openbsd the alarm() call triggers
instantly instead of after the 30 seconds it's supposed to wait. It does not
trigger instantly on linux.
If I replace alarm() with setitimer() sophie runs fine and appears to
successfuly detect viruses, at least eicar.com. Timeouts also work.
Now, what puzzles me a bit is why it didnt work with alarm()?
Is is because I compiled sophie on slackware instead of redhat?
Inquiruing minds wants to know :P
I dont know enough about C, Linux and openbsd internals to figure it out so
hopefully someone else here will be able to.
My slackware is 8.0 with kernel 2.2.19 (stock kernel) and my openbsd is 3.0
(GENERIC).
Lars Hansson