aboutsummaryrefslogtreecommitdiff
path: root/daemon/Child.cpp
diff options
context:
space:
mode:
authorDrew Richardson <drew.richardson@arm.com>2012-07-31 12:00:00 -0700
committerDrew Richardson <drew.richardson@arm.com>2014-12-19 15:29:29 -0800
commit5f9955b9c65967a7a62f7860295d8ac187c9ec11 (patch)
treef5c3a2b6025bf9f3e436b8de9ae9f67131fe854d /daemon/Child.cpp
parent3abe11d177c6c93fab66d04fd42d11452a0c508e (diff)
gator: Version 5.115.11
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Diffstat (limited to 'daemon/Child.cpp')
-rw-r--r--daemon/Child.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/Child.cpp b/daemon/Child.cpp
index bcc868a..2c7c292 100644
--- a/daemon/Child.cpp
+++ b/daemon/Child.cpp
@@ -79,7 +79,7 @@ void child_handler(int signum) {
}
void* durationThread(void* pVoid) {
- prctl(PR_SET_NAME, (unsigned int)&"gatord-duration", 0, 0, 0);
+ prctl(PR_SET_NAME, (unsigned long)&"gatord-duration", 0, 0, 0);
sem_wait(&startProfile);
if (gSessionData->mSessionIsActive) {
// Time out after duration seconds
@@ -99,7 +99,7 @@ void* stopThread(void* pVoid) {
char type;
OlySocket* socket = child->socket;
- prctl(PR_SET_NAME, (unsigned int)&"gatord-stopper", 0, 0, 0);
+ prctl(PR_SET_NAME, (unsigned long)&"gatord-stopper", 0, 0, 0);
while (gSessionData->mSessionIsActive) {
// This thread will stall until the APC_STOP or PING command is received over the socket or the socket is disconnected
if (socket->receiveNBytes(&type, sizeof(type)) > 0) {
@@ -137,7 +137,7 @@ void* senderThread(void* pVoid) {
char end_sequence[] = {RESPONSE_APC_DATA, 0, 0, 0, 0};
sem_post(&senderThreadStarted);
- prctl(PR_SET_NAME, (unsigned int)&"gatord-sender", 0, 0, 0);
+ prctl(PR_SET_NAME, (unsigned long)&"gatord-sender", 0, 0, 0);
sem_wait(&haltPipeline);
do {
@@ -196,7 +196,7 @@ void Child::run() {
LocalCapture* localCapture = NULL;
pthread_t durationThreadID, stopThreadID, senderThreadID;
- prctl(PR_SET_NAME, (unsigned int)&"gatord-child", 0, 0, 0);
+ prctl(PR_SET_NAME, (unsigned long)&"gatord-child", 0, 0, 0);
// Disable line wrapping when generating xml files; carriage returns and indentation to be added manually
mxmlSetWrapMargin(0);