From 1cb97f1b51649014dc0a0d3d5676fe703643c871 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 13 Nov 2012 14:50:24 +0100 Subject: [PATCH] Fix wrong behaviour of the register-status command on ARM architecture. --- daemon/commands/register-status.cc | 2 +- daemon/commands/unregister.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/commands/register-status.cc b/daemon/commands/register-status.cc index 16e767117..0c21eaac7 100644 --- a/daemon/commands/register-status.cc +++ b/daemon/commands/register-status.cc @@ -65,8 +65,8 @@ void RegisterStatusCommand::exec(Daemon *app, const char *args) { } app->sendResponse(response); } else { + ist.clear(); ist.str(param); - ist.seekg(0); ist >> pid; if (ist.fail()) { app->sendResponse(Response("Incorrect parameter.", Response::Error)); diff --git a/daemon/commands/unregister.cc b/daemon/commands/unregister.cc index 4df79be21..60acb6b02 100644 --- a/daemon/commands/unregister.cc +++ b/daemon/commands/unregister.cc @@ -32,8 +32,8 @@ void UnregisterCommand::exec(Daemon *app, const char *args) { } } } else { + ist.clear(); ist.str(param); - ist.seekg(0); ist >> pid; if (ist.fail()) { app->sendResponse(Response("Incorrect parameter.", Response::Error));