[dev] [quark] child should kill itself.

From: Rodrigo S. Cañibano <Draco>
Date: Fri, 23 Feb 2018 15:35:39 -0300

Hi again!

I have another issue with QUARK, but this time is more performance focus.

Currently, after responding to a request, the child process just loops
and starts serving on the same socket as the parent, after only a few
requests the pstree looks like a forest:

quark---quark-+-quark-+-2*[quark-+-quark-+-quark---quark+
              | | | `-quark]
              | | |-quark---quark]
              | | `-quark]
              | |-quark-+-quark
              | | `-quark---quark
              | |-quark---quark
              | `-quark
              |-quark-+-quark-+-quark-+-quark---quark
              | | | `-quark
              | | |-quark---quark
              | | `-quark
              | |-quark-+-quark---quark
              | | `-quark
              | |-quark---quark
              | `-quark
              |-quark-+-quark-+-quark---quark
              | | `-quark
              | |-quark---quark
              | `-quark
              |-quark-+-quark---quark
              | `-quark
              |-quark---quark
              `-quark


The patch is just this:

diff --git a/main.c b/main.c
index dc78eb0..754299a 100644
--- a/main.c
+++ b/main.c
_AT_@ -243,4 +243,5 @@ main(int argc, char *argv[])
                        case 0:
                                serve(infd, &in_sa);
+ exit(0);
                                break;
                        default:

---
Draco Metallium
Received on Fri Feb 23 2018 - 19:35:39 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 23 2018 - 19:48:07 CET