diff options
author | Jeevan Ramakant Nagvekar <jeevan.nagvekar1@wipro.com> | 2018-07-27 16:00:44 +0530 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-12-21 10:16:46 +0100 |
commit | 744b0d0c6b9231250dff00ed873e9cd5966da3ff (patch) | |
tree | f0589f531d32f1d512d45b51a406917489a5838b /src/daemon/dlt-daemon_cfg.h | |
parent | c42a2bd8030113be0275ed07e1bc48779f607eec (diff) | |
download | DLT-daemon-744b0d0c6b9231250dff00ed873e9cd5966da3ff.tar.gz |
Remove one-instance-lock mechanism
This commit removes DLT's "one-instance-lock" mechanism.
In daemonized mode, on first instance, a file is created (if not
already created) and locked. If second instance is attempted
file locking fails since the file is already locked by first instance.
This prevents new instance of the DLT daemon. After analysis
its found that there is no need of any mechanism for prevention
of another instance. The same is already taken care by socket
mechanism. Since main socket is created by first instance, attempt
to create it again with same port number fails.
Signed-off-by: Jeevan Ramakant Nagvekar <jeevan.nagvekar1@wipro.com>
Diffstat (limited to 'src/daemon/dlt-daemon_cfg.h')
-rw-r--r-- | src/daemon/dlt-daemon_cfg.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/daemon/dlt-daemon_cfg.h b/src/daemon/dlt-daemon_cfg.h index 8870217..ff3a042 100644 --- a/src/daemon/dlt-daemon_cfg.h +++ b/src/daemon/dlt-daemon_cfg.h @@ -94,13 +94,8 @@ /* Maximum length of a description */ #define DLT_DAEMON_DESCSIZE 256 -/* Name of daemon lock file, contain process id of dlt daemon instance */ -#define DLT_DAEMON_LOCK_FILE "dltd.lock" - /* Umask of daemon, creates files with permission 750 */ #define DLT_DAEMON_UMASK 027 -/* Permissions of daemon lock file */ -#define DLT_DAEMON_LOCK_FILE_PERM 0640 /* Default ECU ID, used in storage header and transmitted to client*/ #define DLT_DAEMON_ECU_ID "ECU1" |