summaryrefslogtreecommitdiff
path: root/library/Process-linux.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-08-16 23:39:18 +0200
committerPetr Mrázek2011-08-16 23:39:18 +0200
commit03e3e9002b7e61c862d023558b8353b20904c5e6 (patch)
tree5469d6aea98ff6b949864ac62caac1bb81d737db /library/Process-linux.cpp
parent7898d2b6b259f3c48d08c0e299e352675085cc2a (diff)
downloaddfhack-03e3e9002b7e61c862d023558b8353b20904c5e6.tar.gz
dfhack-03e3e9002b7e61c862d023558b8353b20904c5e6.tar.bz2
dfhack-03e3e9002b7e61c862d023558b8353b20904c5e6.tar.xz
Linux debug...
Diffstat (limited to 'library/Process-linux.cpp')
-rw-r--r--library/Process-linux.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/library/Process-linux.cpp b/library/Process-linux.cpp
index f68fd20b..718d0f80 100644
--- a/library/Process-linux.cpp
+++ b/library/Process-linux.cpp
@@ -58,6 +58,7 @@ Process::Process(VersionInfoFactory * known_versions)
target_result = readlink(exe_link_name, target_name, sizeof(target_name)-1);
if (target_result == -1)
{
+ cerr << "Failed to readlink(/proc/self/exe)\n";
return;
}
// make sure we have a null terminated string...
@@ -77,6 +78,14 @@ Process::Process(VersionInfoFactory * known_versions)
my_descriptor->setParentProcess(this);
identified = true;
}
+ else
+ {
+ cerr << "Unable to retrieve version information.\n";
+ }
+ }
+ else
+ {
+ cerr << "This isn't DF.\n";
}
}