summaryrefslogtreecommitdiff
path: root/dpid/main.c
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-11-01 16:31:59 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-11-01 16:31:59 -0300
commit29ea3975335bad3fa72afe8c1724d1d00355c396 (patch)
treedf3d82747440f974b2803470be35ebfcf9eae15f /dpid/main.c
parentb643ca0bd58188da3dc98193f97fb220ab008983 (diff)
Implemented the file dpi based on select() (removed its pthreads dependency)
It should be faster and use less resources.
Diffstat (limited to 'dpid/main.c')
-rw-r--r--dpid/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dpid/main.c b/dpid/main.c
index 677fa7d2..494f9dbc 100644
--- a/dpid/main.c
+++ b/dpid/main.c
@@ -117,9 +117,7 @@ static char *get_request(Dsh *sh)
char *dpip_tag;
(void) sigprocmask(SIG_BLOCK, &mask_sigchld, NULL);
- do {
- dpip_tag = a_Dpip_dsh_read_token(sh);
- } while (!dpip_tag && sh->status == DPIP_EAGAIN);
+ dpip_tag = a_Dpip_dsh_read_token(sh, 1);
(void) sigprocmask(SIG_UNBLOCK, &mask_sigchld, NULL);
return dpip_tag;