Koichiro IWAO
2262f1361f
sesman: close stdout/stderr earlier
...
not to spit on the console
7 years ago
Koichiro IWAO
6ae3052a0f
sesman: don't spit on the console when starting
...
As the Debian patch[1] expresses, spitting messages on the console when
a process starts in background is a bad idea. Everything should be
written to log file and daemon should start silently. This is a first
step to shut up daemons.
Got some idea from Debian Remote Maintainers and Thorsten Glaser,
thanks!
[1] 2751ad4d62/debian/patches/shutup-daemon.diff
7 years ago
Koichiro IWAO
f2db57afb0
fix indent
7 years ago
matt335672
3f2a017c97
Make listen check before daemon fork
7 years ago
Ian Geiser
4b87548b71
Use g_create_path instead of g_create_dir
...
Rename g_mk_temp_dir to g_mk_socket_path
8 years ago
Koichiro IWAO
858e6149f0
fix typo
8 years ago
Koichiro IWAO
6f8eacd72b
sesman: make sure socket directory present
...
before try to create a domain socket.
Originally proposed by Ian Geiser (geiseri).
8 years ago
Koichiro IWAO
5a7208a15b
sesman: exit with failure status if listen failed
8 years ago
Pavel Roskin
6ed4c969f4
Eliminate APP_CC and DEFAULT_CC
8 years ago
Pavel Roskin
b2d3dcf169
Include config_ac.h from all source files
8 years ago
Pavel Roskin
0a9b586332
Improve xrdp-sesman help text
...
Don't document "-ns", as "-n" and "--nodaemon" should be enough. Always
refer to the program as xrdp-sesman, not sesman.
8 years ago
Pavel Roskin
5829323ad8
Use g_new or g_new0 when C++ compiler would complain about implicit cast
9 years ago
Pavel Roskin
be1d034f91
Report pid and listening address/port for xrdp and xrdp-sesman
...
For xrdp-sesman, don't report that the daemon is listening to a port if
it fails to attach to that port. Don't use LOG_LEVEL_ALWAYS for startup
message, it's not a critical error.
9 years ago
NerdKnight
99ebe1340f
Fix compile error "format not a string literal and no format arguments [-Werror=format-security]"
9 years ago
Jay Sorg
689ffe79d9
fix warnings, move some calls to os_calls
9 years ago
Jay Sorg
38241f2a0b
Fix all format warnings and some unused variable warnings
9 years ago
Jay Sorg
7393579205
Don't attempt to intercept SIGKILL, it doesn't work on any OS
9 years ago
Pavel Roskin
92a6833e9b
Fix typos
9 years ago
Pavel Roskin
81779ddb01
Use lowercase program names for syslog
...
Other programs typically use the same case as their execulables.
9 years ago
Jay Sorg
4e0d0f3ba0
sesman: remove the thread
9 years ago
Koichiro IWAO
ac9ff52c1b
sesman: void function should not return a value
10 years ago
Laxmikant Rashinkar
27055d5762
coverity: improper use of negative value
11 years ago
Laxmikant Rashinkar
a990287c46
coverity: fixed unchecked return value from library
11 years ago
Laxmikant Rashinkar
73578bc612
coverity: fixed unchecked return value
11 years ago
Jay Sorg
c20b447f21
sesman: pid string match xrdp length
12 years ago
Jay Sorg
a6592ed690
sesman: fix for reading pid file
12 years ago
Jay Sorg
c6fa03102f
copyright year update
12 years ago
Laxmikant Rashinkar
1123323fda
o moved from GNU General Public License to Apache License, Version 2.0
...
o applied new coding standards to all .c files
o moved some files around
12 years ago
Jay Sorg
099a421c77
log: added path for when --prefix is used
13 years ago
norrarvid
4d4ebbf363
Initial syslog support in XRDP
13 years ago
Jay Sorg
93939893de
remove old freerdp dir
13 years ago
Jay Sorg
f10e5bbfd5
fix for https://bugzilla.redhat.com/show_bug.cgi?id=782619
13 years ago
Nicola Ruggero
4cf06dbbcb
Major code cleanup:
...
- Initialized and zeroed out local variables
- Check for some null pointers
- Fixed some typos
- Other minor changes (beautify, etc.)
14 years ago
jsorg71
328649af9b
g_thread_sck set outside of lock fix and g_cfg should always be a pointer to a struct
15 years ago
jsorg71
db32048d81
use _ not - in name
16 years ago
jsorg71
eeac7c938a
add extended log output
16 years ago
jsorg71
2750bd3c92
delete the pid file on exit
16 years ago
jsorg71
23ffdb0c5f
autotools fix and file_loc.h simplified
16 years ago
jsorg71
a71ca6bc1f
only the main thread forks
16 years ago
jsorg71
d241e02422
change to the g_signal_* functions
16 years ago
jsorg71
13ac4186c6
quiet them main loop of sesman
16 years ago
jsorg71
18600b093e
move to using the signal functions instead of sigaddset since we removed unset signals
16 years ago
jsorg71
23fe2e2259
added g_ to globals, added SIGINT, SIGKILL to shutdown signals, other minor changes
16 years ago
ilsimo
d14b076a70
still more work on logging
...
libscp makefile fix
17 years ago
ilsimo
57484bd701
more work on logging
17 years ago
ilsimo
4c9d3862e5
updating logging subsystem
17 years ago
jsorg71
cd57d1b689
update copyright year
17 years ago
ilsimo
f22b5b42a7
making libscp a real library
...
some fixes in configuration options
18 years ago
ilsimo
6cbc09be53
added ListenAddress configuration option
18 years ago
ilsimo
5d29a7127b
fixes bug #1595324 in sf.net bugtracker
18 years ago