POV-Ray

The Persistence of Vision Raytracer (POV-Ray).

This is the legacy Bug Tracking System for the POV-Ray project. Bugs listed here are being migrated to our github issue tracker. Please refer to that for new reports or updates to existing ones on this system.

Attached to Project: POV-Ray
Opened by David Given - 2010-01-10
Last edited by Thorsten Fröhlich - 2011-08-23

FS#76 - Povray returns incorrect exit code when aborting render

If you abort a render with ^C, Povray exits with a ‘success’ error code.

To test:

povray scene.ini
(^C to abort it)
echo $?

Right now 0 is returned (’success’). A non-zero value should be returned (’failure’).

This is particularly important for scripting, where command lines like:

povray scene.ini && halt

...can be used. I only want the halt to be executed if the scene renders successfully. If I change my mind and ^C it, I don’t want the machine to shut down!

Closed by  Thorsten Fröhlich
Tuesday, 23 August 2011, 06:31 GMT
Reason for closing:  Implemented
Admin
Christoph Lipka commented on Monday, 22 March 2010, 15:27 GMT

Technically, it can be debated whether error code 0 is appropriate or not; as a matter of fact, when the render is aborted by the user, POV-Ray does not exit due to an error in the strict sense.

I think a sensible behaviour would be to pass on the SIGINT signal, which can then be trapped in the calling script. This is how 3.7 does it.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing