Motion - Avoid Cleanup Segfault

Avoid Cleanup Segfault

Introduction

There're some variable that are not allocated so when motion exits the cleanup process segfaults , also it's not safe to change file descriptor values in signal handlers.

Description of Patch

Allocates filepath ( using strdup ) and moves out from signal handler pipe and mpipe cleanup.

Installation of Patch

patch < motion-3.2.2-segfault.filepath-vloopback.diff

Change History of Patch

  • motion-3.2.2-segfault.filepath-vloopback.diff v1.0 20, Jun 2005
    • Allocates filepath using strdup to avoid segfault is target_dir parameter is not supplied in motion.conf.
    • Moves out from signal handler the cleanup for pipe and mpipe.

Discussion and Comments


Topic revision: r4 - 13 Aug 2005, KennethLavrsen
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.