}
}
+
int
rxpd_file_save (struct rxpd_file* self)
{
{
struct rxpd_rule* rule = (struct rxpd_rule*)n;
if (rule->atime != (time_t)-1)
- rxpd_buffer_printf (out, "%ld:%s\n", rule->atime, rule->string);
+ rxpd_buffer_printf (out, "%ld:%s\n", rule->atime, rule->string);
else if (*rule->string != '#')
rxpd_buffer_printf (out, ":%s\n", rule->string);
else
pth_event_t ev = pth_event (PTH_EVENT_FD|PTH_UNTIL_FD_READABLE, self->fd);
- // TODO cancel thread to leave the loop?
while (pth_wait (ev))
{
int fd = pth_accept (self->fd, NULL, 0);