Motion - Bug Report 2010x 04x 28x 054348
You are here: Foswiki>Motion Web>BugReports>BugReport2010x04x28x054348 (02 May 2010, AngelCarpintero)Edit Attach

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

BugReportForm edit

TopicTitle Events leave zombies on OpenBSD
BugStatus Monitored
AssignedBugTo Angel.Carpintero
SubmittedBy MotionMark
I Attachment Action Size Date Who Comment
motion-openbsd.patchpatch motion-openbsd.patch manage 1 K 28 Apr 2010 - 05:51 UnknownUser Patch on 3.2.11.1 to make it compile and run without zombies on OpenBSD (tested 4.6)
Topic revision: r3 - 02 May 2010, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.