]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/server_child.c
More robust IPC reconnect error handling
[netatalk.git] / libatalk / util / server_child.c
index 7d04e0506ce1668d13097338c6625a8d0e9d2c04..016029f8c4200a34e87896f0eba8460326e02f89 100644 (file)
@@ -135,8 +135,10 @@ afp_child_t *server_child_add(server_child *children, int forkid, pid_t pid, uin
 
     /* it's possible that the child could have already died before the
      * pthread_sigmask. we need to check for this. */
-    if (kill(pid, 0) < 0)
+    if (kill(pid, 0) < 0) {
+        LOG(log_error, logtype_default, "server_child_add: no such process pid [%d]", pid);
         goto exit;
+    }
 
     fork = (server_child_fork *) children->fork + forkid;