git://git.jankratochvil.net
/
lufs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c9b94f
)
setlinebuf(3) on stdout and stderr to prevent buffering of debug dumps to file.
author
short
<>
Fri, 22 Aug 2003 08:59:07 +0000
(08:59 +0000)
committer
short
<>
Fri, 22 Aug 2003 08:59:07 +0000
(08:59 +0000)
lu_fsctl_run() returns now - use succcessful exit(0).
lufsd/daemon.c
patch
|
blob
|
history
diff --git
a/lufsd/daemon.c
b/lufsd/daemon.c
index
ec60609
..
89df831
100644
(file)
--- a/
lufsd/daemon.c
+++ b/
lufsd/daemon.c
@@
-107,6
+107,8
@@
main(int argc, char **argv){
INIT_LIST_HEAD(&cfg);
srandom(time(NULL));
+ setlinebuf(stdout);
+ setlinebuf(stderr);
if((argc < 5) || (strcmp(argv[3], "-o")) ){
ERROR("Usage: %s none <mount-point> -o [options, ...]", argv[0]);
@@
-195,7
+197,7
@@
main(int argc, char **argv){
/* launching FSCtl... */
lu_fsctl_run(ctl, ssock, tmp);
- exit(
1
);
+ exit(
0
);
}