mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
CShellWindow: add debug output for error ident
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user