X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libustcomm%2Fustcomm.c;h=5f2517b169411dc24e2f66c6823962d629ebfdc4;hb=53bd45cf6c5974dfbc0ea5aa1c842869b27eea6e;hp=7dd12510612eac2b1502445f6d9cfd64e89c9102;hpb=5932431b3ef6217b50e6e9503826b94ee191edd7;p=lttng-ust.git diff --git a/libustcomm/ustcomm.c b/libustcomm/ustcomm.c index 7dd12510..5f2517b1 100644 --- a/libustcomm/ustcomm.c +++ b/libustcomm/ustcomm.c @@ -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. */