Problem in tevent_signal

Volker Lendecke Volker.Lendecke at SerNet.DE
Sat Jan 28 13:13:00 MST 2012


Hi!

Destroying a tevent_signal event from within its handler
isn't supported right now. See the following code sequence
from tevent_signal.c:

        se->handler(ev, se, i, count, NULL, se->private_data);
#ifdef SA_RESETHAND
        if (se->sa_flags & SA_RESETHAND) {
                talloc_free(se);
        }
#endif

The signal handler might be gone after it was executed.

The trick used in tevent_timed is probably not really
appropriate, we might run the same event more than once.

Working on it, maybe someone else has a bright idea how to
solve this.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba-technical mailing list