Skip to content

using the on_movie_end option in the config creates zombie processes #1522

Closed
@steffhip

Description

  1. Reviewed guide and contributing documents? (Yes/No): Yes
  2. version [x.y.z, hash, other]: deafult raspberryPi version: 4.3.2
  3. installed as a package or compiled from sources [deb, rpm, git, other]: from raspberrypi repo
  4. standalone or part of third party [motion, MotionEyeOS, other]: standalone
  5. video stream source [V4L (card or USB), net cam (mjpeg, rtsp, other), mmal]: legacy camera stack
  6. hardware [x86, ARM, other]: arm64 / raspberrypi 3
  7. operating system [16.04, Stretch, etc, FreeBSD, other]: debian11 (bullseye)

To reproduce the issue, just add an simple on_movie_end option (in my case: touch %f.done to signalize another script that the file is written). The script itself is executed properly. However a zombie process remains after each execution.

eg. ps aux yields after this stage:

[...]
motion   1234 0.0 0.0  0   0   ?   Zs 22.18 0:00 [sh] <defunct>
[...]

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions