summaryrefslogtreecommitdiff
path: root/indra/llcommon/llprocess.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2012-01-22 11:56:38 -0500
committerNat Goodspeed <nat@lindenlab.com>2012-01-22 11:56:38 -0500
commit748d1b311fdecf123df40bd7d22dd7e19afaca84 (patch)
treef4d52790a8788ba4f6f3a7973acaa231893526ac /indra/llcommon/llprocess.h
parentaa1bbe3277842a9a6e7db5227b35f1fbea50b7a6 (diff)
Add LLProcess logging on launch(), kill(), isRunning().
Much as I dislike viewer log spam, seems to me starting a child process, killing it and observing its termination are noteworthy events. New logging makes LLExternalEditor launch message redundant; removed.
Diffstat (limited to 'indra/llcommon/llprocess.h')
-rw-r--r--indra/llcommon/llprocess.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llcommon/llprocess.h b/indra/llcommon/llprocess.h
index 7dbdf23679..019c33592c 100644
--- a/indra/llcommon/llprocess.h
+++ b/indra/llcommon/llprocess.h
@@ -97,7 +97,7 @@ public:
typedef HANDLE id;
#else
typedef pid_t id;
-#endif
+#endif
/// Get platform-specific process ID
id getProcessID() const { return mProcessID; };
@@ -114,13 +114,14 @@ public:
* functionality should be added as nonstatic members operating on
* mProcessID.
*/
- static id isRunning(id);
-
+ static id isRunning(id, const std::string& desc="");
+
private:
/// constructor is private: use create() instead
LLProcess(const LLSDParamAdapter<Params>& params);
void launch(const LLSDParamAdapter<Params>& params);
+ std::string mDesc;
id mProcessID;
bool mAutokill;
};