Not sure if ports@ is correct for this. I am trying to build e2guardian[0]
5.3.3 on OpenBSD in order to replace dansguardian[1], which does exists
in ports but is derelict. 


There is one obstacle. In FatController.cpp the program uses
sigtimedwait(), which doesn't exist on OpenBSD. The code snippet reads:

        timeout.tv_sec = 5;
        timeout.tv_nsec = (long) 0;
        rc = sigtimedwait(&signal_set, NULL, &timeout);
        if (rc < 0) {
            if (errno != EAGAIN) {
                syslog(LOG_INFO, "%sUnexpected error from sigtimedwait() %d 
%s", thread_id.c_str(), errno, strerror(errno));
            }
        } else {
            if (rc == SIGUSR1)
                gentlereload = true;
            if (rc == SIGTERM)
                ttg = true;
            if (rc == SIGHUP)
                gentlereload = true;
#ifdef DGDEBUG
            std::cerr << "signal:" << rc << std::endl;
#endif
            if (o.logconerror) {
                syslog(LOG_INFO, "%ssigtimedwait() signal %d recd:", 
thread_id.c_str(), rc);
            }
        }


I am able to read code, but I am not a programmer. What would be the
appropriate way to replace sigtimedwait() here?


Henry

[0] http://e2guardian.org/cms/index.php
[1] https://openports.pl/path/www/dansguardian

Reply via email to