From 4e1c06db7aa2a9717adffe84152d7bddc2d1fd71 Mon Sep 17 00:00:00 2001 From: joq Date: Sat, 11 Dec 2004 05:53:59 +0000 Subject: print SHM type message git-svn-id: svn+ssh://jackaudio.org/trunk/jack@838 0c269be4-1314-0410-8aa9-9f06e86f4224 --- libjack/shm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libjack/shm.c') diff --git a/libjack/shm.c b/libjack/shm.c index d14a674..ad9a419 100644 --- a/libjack/shm.c +++ b/libjack/shm.c @@ -1,5 +1,6 @@ /* Copyright (C) 2003 Paul Davis + Copyright (C) 2004 Jack O'Quin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -38,8 +39,10 @@ #ifdef USE_POSIX_SHM static jack_shmtype_t jack_shmtype = shm_POSIX; +static char *shmtype_name = "POSIX"; #else static jack_shmtype_t jack_shmtype = shm_SYSV; +static char *shmtype_name = "System V"; #endif /* interface-dependent forward declarations */ @@ -235,6 +238,8 @@ jack_register_server (const char *server_name) int i; pid_t my_pid = getpid (); + fprintf (stderr, "JACK compiled with %s SHM support.\n", shmtype_name); + jack_shm_lock_registry (); /* See if server_name already registered. Since server names -- cgit v1.2.1