summaryrefslogtreecommitdiff
path: root/src/daemon
Commit message (Collapse)AuthorAgeFilesLines
* Invalid Sock is set to -1 instead 0 (stdin). Consequent error handling in ↵Simon Brandner2013-07-191-3/+3
| | | | | | fseek failure cases Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Removed possible recursive call of dlt_user_log_file_errorMessage. Added ↵Simon Brandner2013-07-191-1/+6
| | | | | | | | | | some return value checks for system calls (stat,fseek) and error logging in those cases. Conflicts: src/lib/dlt_filetransfer.c Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* some coverity fixesSimon Brandner2013-07-191-3/+9
| | | | | | fixed some merge problems Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Semaphores and Pointer passing insteasd by value and otehr coverity issue fixesSimon Brandner2013-07-192-8/+19
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Regression fix: check ferror/feof when fgets return NULLLassi Marttala2013-07-191-4/+38
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Close filehandle on early existsLassi Marttala2013-07-191-0/+2
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Fix compiler warningsLassi Marttala2013-07-191-5/+11
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Unify ECU version sending functionsLassi Marttala2013-07-194-117/+84
| | | | | | | | | | Review changes: Lower log level when opening fails. It might be deliberately set to non-existent file. Give name to period time in ECU version sending Merge branch 'LM-GSWD-162' Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* fixed possible overflow in dlt-system-filetransfer and missing fclose in ↵Simon Brandner2013-07-191-0/+1
| | | | | | dlt_daemon_common Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Watchdog: Review changes.Lassi Marttala2013-07-192-22/+15
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Watchdog: Watch the main thread.Lassi Marttala2013-07-192-6/+60
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* appended null termination to version stringSimon Brandner2013-07-194-56/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | adding closure of socket in syslog_thread and read_socket fixed missing free of filepath in compressed file transfer fixed missing closedir in added in send_one error case fixed missing fclose of src_file in ferror case dlt-daemon.c fixed missing fclose in ferror case dlt_common.c using snprintf for filename instead sprintf in dlt_file_open modified some magix numbers - replaced by limits.h values. added strncpy instead strcpy to make cp more safe. split up a function to avoid coverity complaint when computing size of a write buffer length dlt_daemon_common: added strncpy instead strcpy to make cp more safe. Fixes some more Coverity issues in dlt-daemon.c dlt_user.c dlt_common.c and dlt_offline_trace.c. Conflicts: src/daemon/dlt-daemon.c src/lib/dlt_user.c Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Removed most warnings caused by: Wunused-but-set-variable flag. Eome were ↵Simon Brandner2013-07-192-3/+84
| | | | | | kept, because they were the nicer variant to eliminate them, or they seemed reserved for an commandline argument Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Increased buffer size of daemon and user library.Alexander Wenzel2012-11-261-3/+3
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Create new fifo only when same application registers with different pid.Alexander Wenzel2012-11-261-1/+1
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Updated doxygen documentation, readme, man pages and release notesChristian Muck2012-06-131-2/+2
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GDLT-24]: Fix for a compiler warning.Lassi Marttala2012-06-131-1/+2
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* Preparation of config files for releaseChristian Muck2012-06-131-6/+9
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GDLT-94]: Send periodic software version messages.Lassi Marttala2012-06-136-3/+174
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GENDLT-24]: Crash on invalid injection message.Lassi Marttala2012-06-131-0/+6
| | | | | | Check that the size of the injection message is sane. Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GDLT-90] Implemented systemd watchdog concept in dlt-systemChristian Muck2012-06-131-7/+7
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* If compiled for systemd but the system not using systemd, print an internal ↵Christian Muck2012-06-131-1/+1
| | | | | | error Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GDLT-90] Implemented systemd watchdog conceptChristian Muck2012-06-133-10/+135
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GDLT-67] dlt-system v2.0, check full commit message for rebase detailsLassi Marttala2012-06-131-3/+3
| | | | | | | | | | | | | | | [GDLT-67] Prepare build system. [GDLT-67] Config parsing, structure for thread handling [GDLT-67] Finalize configuration reading. [GDLT-67] Reimplementation of syslog, logfile, logprocess, shell. [GDLT-67] First complete version of the new dlt-system. [GDLT-67] Fixed header comments. authors, file names. [GDLT-67] Final touches. [GDLT-67] Fixed a problem with thread creation in optimized release binary. [GDLT-67] New configuration file. [GDLT-67] Added dlt debug output Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GDLT-89] Daemon doesn't sent the persistent log level, trace status ↵Christian Muck2012-05-301-4/+5
| | | | | | configuration from dlt-runtime files to a new registered context fixed. Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GDLT-88] Fixed wrong initalization order using offline trace functionalityLassi Marttala2012-05-301-10/+10
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* Added important SEM_FREE in the daemon and closing fd in the filetransferChristian Muck2012-05-301-1/+1
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GDLT-3] Fixed missing semaphore around dlt_buffer_push3Christian Muck2012-05-302-0/+5
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* Corrected the default values of dlt.confChristian Muck2012-05-301-4/+4
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* Added define statement for initial value of file descriptor and (-1). ↵Christian Muck2012-05-302-18/+17
| | | | | | Updated the user_handle of the daemon and user Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [D4099]: Integrated fix from Alexander Wenzel. This will check forLassi Marttala2012-05-303-2/+73
| | | | | | duplicate file handles, and clean them up if found. Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GDLT-85] Pipes opened multiple times for the same application pid fixed.Christian Muck2012-05-301-5/+25
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GENDLT-15, Fixes to previous integrations from review.Lassi Marttala2012-04-041-1/+1
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GENDLT-15, Safe re-allocations for databuffer.Lassi Marttala2012-04-042-10/+32
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GENDLT-15, use the correct TEXTBUFSIZELassi Marttala2012-04-041-1/+1
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GENDLT-15, Avoid buffer overrun with snprintf().Lassi Marttala2012-04-041-5/+5
| | | | | | | | | | Check return value of dlt_user_log_write_start(_id) correctly. Reduce the number of applications if allocation fails. Make dlt_user_log_write_start inline Improve error checking in dlt_user_log_write_start_id Use databuffersize to avoid reallocations Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GENDLT-15, Rename buffer size constant to avoid confusion.Lassi Marttala2012-04-042-20/+16
| | | | | | | | Better error handling when writing to FIFO. Remove duplicate msg initialization. Optimize away multiple uses of strlen for one check. Signed-off-by: Christian Muck <christian.muck@bmw.de>
* Changed dlt loggingmode to default valueChristian Muck2012-03-281-1/+1
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* Corrected email of Alexander WenzelChristian Muck2012-03-277-7/+7
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GDLT-38, Update <FILE> fields in licenses.Lassi Marttala2012-03-266-6/+6
|
* GDLT-38, Update licenses to all the sources.Lassi Marttala2012-03-262-63/+32
|
* GDLT-38, Update license in internal headers.Lassi Marttala2012-03-264-136/+77
|
* GDLT-38, Update license in more CMakeListsLassi Marttala2012-03-261-32/+11
|
* Fixed bug with comparinson between signed and unsigned integer and ↵Christian Muck2012-03-212-13/+13
| | | | | | protection for a buffer overflow. Signed-off-by: Christian Muck <christian.muck@bmw.de>
* Update project structureChristian Muck2012-02-131-3/+0
|
* [GSW-136] Improve including/prefixing of dlt_version.h fixedChristian Muck2012-01-181-1/+1
|
* Disabled completely SHM if not enabled.Alexander Wenzel2011-11-252-0/+12
|
* Added dynamic increasable ringbuffers to user lib and daemon.Alexander Wenzel2011-11-153-9/+15
|
* Reverted old FIFO functions. Still SHM enabled by default.Alexander Wenzel2011-11-105-32/+292
|
* Added dlt-daemon internal logging configuration into dlt.conf file.Alexander Wenzel2011-11-094-53/+60
| | | | Internal logging to file now also possible.