[RDD] Meters not working

Stefan Gabriel stg at st-gabriel.de
Tue Sep 11 04:50:25 EDT 2007


2007/9/11, Gareth Lapworth <gareth at gbgsolutions.com>:
> Hi Dan,
>
> Thanks for the sharp reply :)
>
> > Is your other user a member ot the group set as audiogroup
> > in /etc/rd.conf.
> > This actually used to cause a segfault for me, so I don't know how it
> > used to work for you.
>
> This was causing a segfault until I used the latest CVS.  I didn't get
> chance to check, but if i remember correctly, the user was part of the
> group Rivendell, which is set as AudioGroup.
>
> > Yea, it is just the shared memory used by the metering that is not being
> > connected to.
>
> Thought that this might be the case.  Are there any fixes or workarounds to this?

I have a little patch for this. With this you could the rivendell apps
with all users that are part of the AudioGroup set in rd.conf.

Index: cae/cae.cpp
===================================================================
RCS file: /home/cvs/cvsroot/rivendell/cae/cae.cpp,v
retrieving revision 1.95
diff -u -r1.95 cae.cpp
--- cae/cae.cpp	10 May 2007 04:38:46 -0000	1.95
+++ cae/cae.cpp	4 Sep 2007 21:03:08 -0000
@@ -229,6 +229,8 @@
   }
   shmctl(meter_block_id,IPC_STAT,&shmid_ds);
   shmid_ds.shm_perm.uid=rd_config->uid();
+  shmid_ds.shm_perm.gid=rd_config->gid();
+  shmid_ds.shm_perm.mode=0660;
   shmctl(meter_block_id,IPC_SET,&shmid_ds);
   meter_block=(RDMeterBlock *)shmat(meter_block_id,NULL,0);
   for(int i=0;i<RD_MAX_CARDS;i++) {


More information about the Rivendell-dev mailing list