ust_fork(): close the ustcomm_app socket in the child on fork()
[ust.git] / libustcomm / ustcomm.c
index 7dd12510612eac2b1502445f6d9cfd64e89c9102..5f2517b169411dc24e2f66c6823962d629ebfdc4 100644 (file)
@@ -678,6 +678,16 @@ free_name:
        return -1;
 }
 
+void ustcomm_free_app(struct ustcomm_app *app)
+{
+       int result;
+       result = close(app->server.listen_fd);
+       if(result == -1) {
+               PERROR("close");
+               return;
+       }
+}
+
 /* Used by the daemon to initialize its server so applications
  * can connect to it.
  */
This page took 0.02333 seconds and 4 git commands to generate.