wireless: rework and fix vlan/station config reload handling
[project/netifd.git] / interface-event.c
index 86e8f5488da8626d54a61a9efee24e0366b10433..b03bfbcac7f055b5cc8e9a3d5898fed7522ae51f 100644 (file)
@@ -38,6 +38,7 @@ static const char * const eventnames[] = {
        [IFEV_FREE] = "free",
        [IFEV_RELOAD] = "reload",
        [IFEV_LINK_UP] = "iflink",
+       [IFEV_CREATE] = "create",
 };
 
 static void
@@ -48,8 +49,10 @@ run_cmd(const char *ifname, const char *device, enum interface_event event,
        int pid;
 
        pid = fork();
-       if (pid < 0)
-               return task_complete(NULL, -1);
+       if (pid < 0) {
+               task_complete(NULL, -1);
+               return;
+       }
 
        if (pid > 0) {
                task.pid = pid;