s3: in sys_popen(), add a debug message for failed fork
authorMichael Adam <obnox@samba.org>
Tue, 4 Sep 2012 13:25:42 +0000 (15:25 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 4 Sep 2012 20:17:30 +0000 (22:17 +0200)
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Sep  4 22:17:30 CEST 2012 on sn-devel-104

source3/lib/system.c

index df7806558db4e8b7f42a1b6a962f383e11f3aa7c..d69f1c66f12dd5da2dc14e2c43f9c4dc8375ecf5 100644 (file)
@@ -1197,6 +1197,7 @@ int sys_popen(const char *command)
        entry->child_pid = fork();
 
        if (entry->child_pid == -1) {
+               DEBUG(0, ("sys_popen: fork failed: %s\n", strerror(errno)));
                goto err_exit;
        }