diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-11-01 16:31:59 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-11-01 16:31:59 -0300 |
commit | 29ea3975335bad3fa72afe8c1724d1d00355c396 (patch) | |
tree | df3d82747440f974b2803470be35ebfcf9eae15f /dpid | |
parent | b643ca0bd58188da3dc98193f97fb220ab008983 (diff) |
Implemented the file dpi based on select() (removed its pthreads dependency)
It should be faster and use less resources.
Diffstat (limited to 'dpid')
-rw-r--r-- | dpid/main.c | 4 |
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; |