pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: zoneminder?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Greg Troxel a écrit :
> Thanks.  I have figured out the problem.
> 
> zoneminder runs "zmc" to read from the camera, and that creates
> shared memory (with shmget).   It does it twice, apparently once
> for "linked" mode with a small size (to get just the metadata
> structs), and once with a larger size (metadata, plus video
> buffer).  Apparently the small one is created first, and then the
> large one with the same key and larger size fails with EINVAL, as
> posix says it must.
> 
> As a workaround I wrote  a program to create the shm segments with
> a big enough size before starting.  I have not figured out the
> actual underlying bug.   So things are not 100% ok, but starting to
> be functional.
> 
> I wonder if this bug is new to pkgsrc's version since you ran it.
> 

	If I remember, I have modified shm parameters directly in
/etc/sysctl.conf.

	Best regards,

	JKB
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEq4YCoAJMwLElZVYXOAfo0lKQ8+cFAltFFXMACgkQOAfo0lKQ
8+diqQ//TGLp7kkD9mofZykCWhoK7BvoMiOSfi7yNWTDRSaaRjYLxKgMAG+yzlUJ
cqAOKuZ/ex873ji2+n4vVjRLrgHtSJ5BxK476Tsu6fOWo4Bsxt02iqhG7wluHCQS
r29Njs588oM+8DwvSN1MGqlKrSinehK0Lw4cZkBwvFyB51vrWL8xVlSytmevG0I5
4SkJT0yWdhqNDxKd1TlESXJL9uqk6vRDhHIqUFelNEQa6Ns585JdGtVr40cHWDPE
m0trRwK5hcqSMdDCuRxNEv5Kkx6Q3oKYXOWZ+Mtjn9DaWk9n26env7ujjHTIVxVX
RhKoEh6WOgcZxVir8ZPv6ZhY3GoEayAGeAjXBApym7ivuhbmFn9grpojAN6WEn8L
Wjg8+Q5U40Svx3ynQZfUFUqguqXSXHbhjaeAE4ApJvjH7rW9VFPNwkaa8RPEzaMe
w0+pz0jE4PhXcfyc0ky6Z68CeDhPqn/XAQc1XbvtVL47rRS86Gd2MbKmyxLruDUv
X+h46zsY4fBbrRdfTzPZ6z8DlTUDo6721r3xdzgkeqbDZm9CW2Gl4XTVjmtb+Jfb
Wo/8Spzpustf3hbh8yaZTwC2pXpiqZKZVl/mRwfE7q5eakvXdSTlhvjzxZhG1M9T
Fn8LapUfzXLOg2FS/psvTMNFlLqYsd4meIQkZaeiZ0tvOhjjQIA=
=nxFl
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index