Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Adam Osuchowski
Kea
Commits
bd985988
Commit
bd985988
authored
Feb 28, 2015
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[master] spelling
parent
50e788cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/lib/util/process_spawn.cc
src/lib/util/process_spawn.cc
+2
-2
src/lib/util/process_spawn.h
src/lib/util/process_spawn.h
+2
-2
No files found.
src/lib/util/process_spawn.cc
View file @
bd985988
...
...
@@ -135,7 +135,7 @@ ProcessSpawnImpl::ProcessSpawnImpl(const std::string& executable,
// is received.
signals_
->
setOnReceiptHandler
(
boost
::
bind
(
&
ProcessSpawnImpl
::
waitForProcess
,
this
,
_1
));
// Conver
t
ion of the arguments to the C-style array we start by setting
// Conver
s
ion of the arguments to the C-style array we start by setting
// all pointers within an array to NULL to indicate that they haven't
// been allocated yet.
memset
(
args_
,
0
,
(
args
.
size
()
+
2
)
*
sizeof
(
char
*
));
...
...
@@ -246,7 +246,7 @@ ProcessSpawnImpl::waitForProcess(int signum) {
int
status
=
0
;
pid_t
pid
=
waitpid
(
-
1
,
&
status
,
0
);
if
(
pid
>
0
)
{
/// @todo Check that the terminatin process was started
/// @todo Check that the terminatin
g
process was started
/// by our instance of ProcessSpawn and only handle it
/// if it was.
process_status_
[
pid
]
=
status
;
...
...
src/lib/util/process_spawn.h
View file @
bd985988
...
...
@@ -74,11 +74,11 @@ public:
/// @brief Spawn the new process.
///
/// This method forks the current process and execues the specified
/// This method forks the current process and execu
t
es the specified
/// binary with arguments within the child process.
///
/// The child process will return EXIT_FAILURE if the method was unable
/// to start the ex
uc
table, e.g. as a result of insufficient permissions
/// to start the ex
ecu
table, e.g. as a result of insufficient permissions
/// or when the executable does not exist. If the process ends successfully
/// the EXIT_SUCCESS is returned.
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment