s3: Improve a dbg msg in aio_fork
authorVolker Lendecke <vl@samba.org>
Wed, 23 Feb 2011 10:09:32 +0000 (11:09 +0100)
committerVolker Lendecke <vlendec@samba.org>
Sat, 26 Feb 2011 16:42:37 +0000 (17:42 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Feb 26 17:42:37 CET 2011 on sn-devel-104

source3/modules/vfs_aio_fork.c

index 0d515130eeb0517bd58ae2517fb22fe6a17d49f0..0cea931a6d5efd88ad0892728bbaf330da47569a 100644 (file)
@@ -389,6 +389,7 @@ static void handle_aio_completion(struct event_context *event_ctx,
 {
        struct aio_extra *aio_ex = NULL;
        struct aio_child *child = (struct aio_child *)p;
+       NTSTATUS status;
 
        DEBUG(10, ("handle_aio_completion called with flags=%d\n", flags));
 
@@ -396,10 +397,12 @@ static void handle_aio_completion(struct event_context *event_ctx,
                return;
        }
 
-       if (!NT_STATUS_IS_OK(read_data(child->sockfd,
-                                      (char *)&child->retval,
-                                      sizeof(child->retval)))) {
-               DEBUG(0, ("aio child %d died\n", (int)child->pid));
+       status = read_data(child->sockfd, (char *)&child->retval,
+                          sizeof(child->retval));
+
+       if (!NT_STATUS_IS_OK(status)) {
+               DEBUG(1, ("aio child %d died: %s\n", (int)child->pid,
+                         nt_errstr(status)));
                child->retval.size = -1;
                child->retval.ret_errno = EIO;
        }