projects
/
platform
/
core
/
system
/
swap-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
275e0c5
)
[REFACTOR] replace code with standard function
author
Dmitry Bogatov
<D.Bogatov@samsung.com>
Mon, 19 Aug 2013 05:16:20 +0000
(09:16 +0400)
committer
Nikita Kalyazin
<n.kalyazin@samsung.com>
Mon, 19 Aug 2013 10:28:03 +0000
(14:28 +0400)
daemon/main.c
patch
|
blob
|
history
diff --git
a/daemon/main.c
b/daemon/main.c
index
a00c148
..
46f3a39
100644
(file)
--- a/
daemon/main.c
+++ b/
daemon/main.c
@@
-413,10
+413,7
@@
int main()
}
//for terminal exit
setup_signals();
- chdir("/");
-
- //new session reader
- setsid();
+ daemon(0, 1);
// initialize manager
int err = initializeManager();