Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
d5eb8fa8
Commit
d5eb8fa8
authored
Oct 09, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev_mngr/*: change daemon syscall to zsys_daemonize for portability
parent
0e7490da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dev_mngr.c
src/dev_mngr/dev_mngr.c
+3
-2
No files found.
src/dev_mngr/dev_mngr.c
View file @
d5eb8fa8
...
...
@@ -186,6 +186,7 @@ int main (int argc, char *argv[])
DBE_DEBUG
(
DBG_DEV_MNGR
|
DBG_LVL_INFO
,
"[dev_mngr] Work directory set to
\"
%s
\"\n
"
,
dmngr_work_dir
);
}
/* Read spawn broker parameter */
dmngr_spawn_broker_cfg_str
=
zconfig_resolve
(
root_cfg
,
"/dev_mngr/spawn_broker"
,
NULL
);
...
...
@@ -227,10 +228,10 @@ int main (int argc, char *argv[])
/* Daemonize dev_mngr */
if
(
dmngr_daemonize
!=
0
)
{
int
rc
=
daemon
(
0
,
0
);
int
rc
=
zsys_daemonize
(
dmngr_work_dir
);
if
(
rc
!=
0
)
{
perror
(
"[dev_mngr] daemo
n"
);
DBE_DEBUG
(
DBG_DEV_MNGR
|
DBG_LVL_FATAL
,
"[dev_mngr] Fail to daemonize
\
n
"
);
goto
err_daemonize
;
}
}
...
...
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