Avoid lock when child dies
[src/app-framework-binder.git] / src / afb-socket.c
index 485fae5..cf788de 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015-2018 "IoT.bzh"
+ * Copyright (C) 2015-2019 "IoT.bzh"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -31,7 +31,8 @@
 
 #include "afb-fdev.h"
 #include "afb-socket.h"
-#include "afb-systemd.h"
+
+#include "systemd.h"
 #include "fdev.h"
 #include "verbose.h"
 
@@ -228,7 +229,7 @@ static int open_systemd(const char *spec)
        errno = EAFNOSUPPORT;
        return -1;
 #else
-       return afb_systemd_fds_for(spec);
+       return systemd_fds_for(spec);
 #endif
 }