BUG: Events leave zombies on OpenBSD
When motion is compiled on
OpenBSD the events like on_picture_save or on_event_start leave a zombie sh process behind after execution. This is caused by the fact that waitpid is never called. Waitpid is handled by the SIGCHLD signal handler but on
OpenBSD libpthread resets the SIGCHLD handler. Causing the motion SIGCHLD handler to be never called.
A functional work around is to move (or repeat) the setup_signals to motion_loop.
"Out of the box" motion does not compile on
OpenBSD. This is easily fixed by including "bt8xx.h" in video_freebsd.h same as done for
NetBSD.
Paste in your error messages, config settings, terminal window output etc in this text field.
Environment
Motion version: |
3.2.11.1 |
ffmpeg version: |
|
Shared libraries: |
ffmpeg |
Server OS: |
OpenBSD 4.6 |
--
MotionMark - 28 Apr 2010
Follow up
Thanks Mark !
I will commit to 3.2 branch and trunk.
--
AngelCarpintero - 28 Apr 2010
Commited to 3.2 and trunk.
--
AngelCarpintero - 02 May 2010
Fix record