faciltate access to the drink's storage
This commit is contained in:
10
guinnessd.c
10
guinnessd.c
@@ -441,6 +441,7 @@ void install_handler () {
|
||||
*/
|
||||
void guinnessd_init (int argc, char *argv[]) {
|
||||
pthread_mutexattr_t mutex_attr;
|
||||
char *cptr;
|
||||
|
||||
setlocale (LC_ALL, "");
|
||||
install_handler ();
|
||||
@@ -449,6 +450,15 @@ void guinnessd_init (int argc, char *argv[]) {
|
||||
logfile = stdout;
|
||||
outerr = stderr;
|
||||
|
||||
/* est-ce bien la place pour initialiser des trucs avant le parsing de
|
||||
la ligne de commande ? Eg: la variable d'environnement DRINKS_DIR
|
||||
*/
|
||||
|
||||
if (NULL!=(cptr=getenv("DRINKS_DIR"))) {
|
||||
chemin = xstrdup(cptr);
|
||||
}
|
||||
|
||||
|
||||
/* Traitement des parametres */
|
||||
if (traite_argv (argc, argv) == TRUE) {
|
||||
switch (fork()) {
|
||||
|
||||
Reference in New Issue
Block a user