A fix and a test case for Bug#750658
A fix and a test case for https://bugs.launchpad.net/tarantool/+bug/750658 --background neither closes nor redirects stdin/stdout/stderr --background option didn't work properly, since stdin/stdout/ stderr streams were left open and pointing to a terminal. This lead to a hang when tarantool was started from a shell script or over ssh. If --background option is given, we need to fork, try to create a pid file, close stdin/stdout/stderr and then initialize the logging subsystem.
Showing
- core/tarantool.m 44 additions, 7 deletionscore/tarantool.m
- doc/user/preface.xml 1 addition, 1 deletiondoc/user/preface.xml
- test/box/args.result 9 additions, 0 deletionstest/box/args.result
- test/box/args.test 10 additions, 0 deletionstest/box/args.test
- test/box/tarantool_bug750658.cfg 40 additions, 0 deletionstest/box/tarantool_bug750658.cfg
- test/lib/server.py 3 additions, 3 deletionstest/lib/server.py
- third_party/CMakeLists.txt 1 addition, 1 deletionthird_party/CMakeLists.txt
- third_party/daemon.c 0 additions, 87 deletionsthird_party/daemon.c
Loading
Please register or sign in to comment