Commit Graph

36 Commits

Author SHA1 Message Date
Yuri Victorovich c8ecee23da Appply patch-daemon_loader.c from FreeBSD 2024-03-26 20:15:04 +02:00
Nedko Arnaudov c93f0d8458 Don't set LADISH env vars for L0 & L1
Having these variables set enables apps to discrimination
against ladish, by error or otherwise. In particular
neither LADISH L0 nor L1 imply that user should face mayhem
of standard file menu items for either new, open, save
and/or saveas being disabled.
2023-06-05 14:12:11 +03:00
Nedko Arnaudov ebce813997 Fix unused-parameter warnings in plain C code 2012-12-02 23:50:05 +02:00
Nedko Arnaudov abf820278b extra compiler warnings 2012-12-02 21:39:51 +02:00
Nedko Arnaudov 73acf78b8d Improve logging
* Take advantage of gcc printf format checks
 * Move code dependent on log level to log.c
   This is a basis for runtime logging tweaks.
 * Remove the now useless LADISH_DEBUG defines
2012-12-02 20:24:22 +02:00
Nedko Arnaudov 0660f36589 Fix use of uninitialized memory in chdir() failure handling code path 2012-11-19 05:49:33 +02:00
falkTX 88aaa609e2 preload libasound.so.2 instead of libasound.so
Under some systems libasound.so is not available by default (reserved to devel packages), which will trigger some LD_PRELOAD warnings.
Bristol fails to start because of this, as it's not expecting such output when first requesting jack sample-rate and buffer-size.
Adding .2 to the library name ensures that the alsa library is always present on non-devel systems, and fixes the Bristol issue.
2012-11-11 22:59:32 +00:00
Nedko Arnaudov 2c3c3f0290 Don't notify user about unexpectedly stopped apps that returned 0 exit code. Fixes #197
The exit code detection for apps ran in terminal is not working,
at least with xterm. xterm doesnt seem to be able to return exit
code of its child process.
2012-10-09 02:32:42 +03:00
Nedko Arnaudov a2a17cd392 add includes for getrlimit 2012-10-07 14:06:59 +03:00
Nedko Arnaudov ce273d9e58 Fix logging from child processes
After fork the log file descriptor is closed
2012-09-08 04:14:47 +03:00
Nedko Arnaudov 9742a120cd Catch last words before children death 2012-09-08 04:13:30 +03:00
Nedko Arnaudov f14ff0f10e ladishd: when starting apps, always use shell. Fix #179
terminal emulators expect split commandline.
without terminal emulator and without shell, commandline must be split.
2011-10-02 16:03:26 +03:00
Nedko Arnaudov f42b4fbef7 operational jack session implementation 2011-10-02 00:47:50 +03:00
Nedko Arnaudov 60aaa492db Make alsapid work when libasound is loaded with dlopen(). Fix for #180
when alsapid is preloaded libasound is not loaded yet
for some unknown reason, late call to dlvsym() fails as well,
at least for mididings (python loads _mididings.so that
implicitly loads libasound.so)

this changeset implements the late symbol lookup,
because it makes the code smaller

the actual fix is to LD_PRELOAD libasound.so as well
2011-06-03 00:44:00 +03:00
Nedko Arnaudov 0ba807b478 ladishd: don't override existing LD_PRELOAD
valgrind for example uses LD_PRELOAD as well.
2011-05-20 01:02:37 +03:00
Nedko Arnaudov 99b1ab0da4 ladishd: set env vars for use in commandlines 2010-11-18 02:59:06 +02:00
Nedko Arnaudov c7d0a6a479 ladishd: the reset of the previous commit 2010-11-18 02:26:56 +02:00
Nedko Arnaudov d027731b18 ladishd: start terminal apps through shell
This will allow expansion of env vars used in commandline to happen
when apps are started in terminal. It already happens when apps are
started without terminal.

This breaks the default title, at least for xterm. For it, it is now
set explicitly.

Starting through shell is not used when there is no '$' in the
commandline. This should minimize the title problems when xterm is not
used.
2010-11-18 02:25:20 +02:00
Nedko Arnaudov a88ec8d69f ladishd: project_name -> vgraph_name (in loader module) 2010-11-18 01:48:36 +02:00
Nedko Arnaudov 7d2ebaa433 daemon: run apps with LD_PRELOAD=libalsapid.so 2010-10-31 01:14:14 +03:00
Nedko Arnaudov 6c3ef670b6 gladish dialog for ladishd settings 2010-09-28 00:18:44 +03:00
Nedko Arnaudov 4a91f81d4c ladishd settings
* whether to autostart studio on load
 * whether to use notification daemon
 * shell to use
 * terminal to use
2010-09-26 20:08:36 +03:00
Nedko Arnaudov c2f277228e When app is killed by a "bad" signal, log it as error 2010-03-06 19:50:00 +02:00
Nedko Arnaudov 2d6f45cff1 daemon: Fix loader log dumps 2009-12-29 08:36:36 +02:00
Nedko Arnaudov 58be0887f5 daemon: on studio stop, wait apps to finish before stopping jack server. Fix for #24 2009-12-12 01:41:20 +02:00
Nedko Arnaudov 8acc3ee6d2 ladishd: rework loader interface 2009-11-30 16:39:59 +02:00
Nedko Arnaudov 85407d70bb ladishd: fix use of uninitialized memory 2009-11-30 02:29:09 +02:00
Nedko Arnaudov e46ea7b77b ladishd: basic app supervisor 2009-11-30 01:22:58 +02:00
Nedko Arnaudov 5f832c8668 rename log macros 2009-09-20 18:23:42 +03:00
Nedko Arnaudov 5e94e9dccc unify source copyright headers in ladishd 2009-07-29 21:08:27 +03:00
Nedko Arnaudov c8fa7425b8 Remove sneaked LASH_DEBUG from loader.c 2009-07-20 23:59:55 +03:00
Nedko Arnaudov ba111e16a3 strip & cleanup ladishd
* code for the service lifecycle object moved to main.c - remove polution by fake OO concept
 * removed types.h - typedefs for public structs are evil. typedefs for handles must be per header
 * compile with -Wall and -Werror flags. Warnings are here to help.
 * define _GNU_SOURCE globally, in config.h. This is propoerty of the whole daemon codebase.
 * common.h is header to collect stuff that is needed almost everywhere in the ladishd
 * cleanup loader module.
2009-07-20 23:49:57 +03:00
Nedko Arnaudov 177197f8ca tabs->spaces 2009-07-13 00:15:44 +03:00
Nedko Arnaudov 416f43a612 waf buildable compat liblash 2009-07-12 23:56:05 +03:00
Nedko Arnaudov d364193985 waf buildable daemon 2009-07-12 22:56:19 +03:00
Nedko Arnaudov 5877daffe0 Improve directory layout 2009-07-12 15:05:55 +03:00