CShellWindow: add debug output for error ident

This commit is contained in:
2014-12-28 22:38:33 +01:00
parent 9f565a2dd0
commit 3896d7ceec

View File

@@ -40,6 +40,7 @@
#include <stdio.h> #include <stdio.h>
#include <poll.h> #include <poll.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h>
#include <system/helpers.h> #include <system/helpers.h>
#include <gui/widget/messagebox.h> #include <gui/widget/messagebox.h>
#include <errno.h> #include <errno.h>
@@ -195,6 +196,7 @@ void CShellWindow::exec()
int r = waitpid(pid, &s, 0); int r = waitpid(pid, &s, 0);
if (res) { if (res) {
dprintf(DEBUG_NORMAL, "[CShellWindow] [%s - %d] res=%d, error[%d]: %s\n", __func__, __LINE__, *res, errno, strerror(errno));
if (r == -1) if (r == -1)
*res = errno; *res = errno;
else else