Mercurial > urweb
comparison src/c/driver.c @ 683:9a2c18dab11d
Expunging non-nullable rows
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 29 Mar 2009 13:30:01 -0400 |
parents | 5bbb542243e8 |
children | a3ddf05fb3e3 |
comparison
equal
deleted
inserted
replaced
682:5bbb542243e8 | 683:9a2c18dab11d |
---|---|
276 uw_reset(ctx); | 276 uw_reset(ctx); |
277 } | 277 } |
278 } | 278 } |
279 | 279 |
280 static void *client_pruner(void *data) { | 280 static void *client_pruner(void *data) { |
281 uw_context ctx = uw_init(0, 0, 0, 0); | |
282 uw_db_init(ctx); | |
283 | |
281 while (1) { | 284 while (1) { |
282 uw_prune_clients(5); | 285 uw_prune_clients(ctx); |
283 sleep(5); | 286 sleep(5); |
284 } | 287 } |
285 } | 288 } |
286 | 289 |
287 static void help(char *cmd) { | 290 static void help(char *cmd) { |