[Ffmpeg-devel] configure: discard ulimit error

Rich Felker dalias
Fri Apr 6 17:08:27 CEST 2007

On Thu, Apr 05, 2007 at 10:13:38PM +0200, Fran?ois Revol wrote:
> ulimit doesn't always support the same args on each platform, here it
> polutes the configure output. On others it might not even exist I
> suppose...
> At least the intented tests don't crash here. Testing for a crash looks
> quite insane anyway.
> If no objection tomorrow I'll commit.
> Fran?ois.

> Index: configure
> ===================================================================
> --- configure	(revision 8629)
> +++ configure	(working copy)
> @@ -1196,7 +1196,7 @@
>  # Disable core dumps so that intentional execution of broken apps doesn't
>  # pollute the current directory.
> -ulimit -c 0
> +ulimit -c 0 >/dev/null 2>&1

IMO these tests are broken anyway!! See the reports about what happens
on windows! If you want to test if certain code crashes, then install
a signal handler on SIGSEGV/SIGBUS/SIGILL/whatever first and then exit
cleanly from the signal handler with an error code, rather than
relying on unreliable OS behavior...


More information about the ffmpeg-devel mailing list