[FFmpeg-devel] [PATCH] ffserver: respect HAVE_FORK to work on Linux/no-mmu systems

Måns Rullgård mans
Thu Oct 22 18:36:37 CEST 2009


Mike Frysinger <vapier at gentoo.org> writes:

> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
>  ffserver.c |   15 +++++++++++++++
>  1 files changed, 15 insertions(+), 0 deletions(-)
>
> diff --git a/ffserver.c b/ffserver.c
> index da45cfa..80297ee 100644
> --- a/ffserver.c
> +++ b/ffserver.c
> @@ -406,7 +406,11 @@ static void start_children(FFStream *feed)
>          if (feed->child_argv && !feed->pid) {
>              feed->pid_start = time(0);
>
> +#if HAVE_FORK
>              feed->pid = fork();
> +#else
> +            feed->pid = vfork();
> +#endif

HAVE_FORK being 0 is no indication that vfork() is available.
Besides, this code doesn't work with vfork().

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list