[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Om-synth] [patch #4664] Start the server automatically if needed
From: |
Lars Luthman |
Subject: |
[Om-synth] [patch #4664] Start the server automatically if needed |
Date: |
Thu, 1 Dec 2005 13:34:17 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050921 Firefox/1.0.7 Mandriva/1.0.6-16.1.20060mdk (2006.0) |
URL:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=4664>
Summary: Start the server automatically if needed
Project: LASH - Linux Audio Session Handler
Submitted by: larsl
Submitted on: Thu 12/01/05 at 13:34
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
_______________________________________________________
Details:
This small patch adds a new function, lash_init2(), which is identical to
lash_init() except that it will try to start lashd if it is not already
running. It does this by calling fork(), daemon(), and execlp(). The lashd
process will stay up after the client that called lash_init2() has exited.
Some issues that may or may not need fixing:
* The function name is stupid.
* Resumed clients should probably not try to start lashd since
they themselves were started by lashd - if they can't connect
something must be wrong. Need some code to check for that.
* If the program that calls lash_init2() is also a JACK client
it must call jack_client_close() explicitly when it exits,
otherwise it won't get unregistered from the JACK server
properly. It's probably a good idea to do this anyway.
* Maybe some sort of config file is needed to store command
line parameters for lashd, like jackd has?
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
address@hidden |
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 12/01/05 at 13:34 Name: lash-autostart-051201.diff Size: 4.31KB
By: larsl
Start lashd automatically if needed
<http://savannah.nongnu.org/patch/download.php?item_id=4664&item_file_id=5534>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=4664>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Om-synth] [patch #4664] Start the server automatically if needed,
Lars Luthman <=