Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2572408
bridge.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
445 B
Referenced Files
None
Subscribers
None
bridge.cc
View Options
#include
"../include/bridge.h"
#include
"../include/process.h"
#include
<signal.h>
#include
<iostream>
#include
<string>
using
namespace
std
;
int64_t
stop
(
int64_t
pid
)
{
return
kill
(
pid
,
SIGTERM
);
}
int64_t
run
(
ProcessMetadata
metadata
)
{
process
::
Runner
runner
;
runner
.
New
(
std
::
string
(
metadata
.
name
),
std
::
string
(
metadata
.
log_path
));
return
runner
.
Run
(
std
::
string
(
metadata
.
command
),
std
::
string
(
metadata
.
shell
),
metadata
.
args
);
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Dec 16, 1:12 PM (2 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
484982
Default Alt Text
bridge.cc (445 B)
Attached To
Mode
rPMC Process Management Controller
Attached
Detach File
Event Timeline
Log In to Comment