tecosaur / org-latex-preview-todos

A tracker for the Org LaTeX Preview effort on https://git.tecosaur.net/tec/org-mode
4 stars 0 forks source link

pdf exports: exit-code 0 but reports failure #25

Open karthink opened 5 months ago

karthink commented 5 months ago

image

I've seen this happen too, but can't reproduce it reliably.

tecosaur commented 4 months ago

Some context:

The way this happens if when org-async--cleanup-process is called with a non-nil failure argument, as the callback is determined like so:

(if (and (not failed)
         (= 0 (process-exit-status process)))
    :success :failure)

org-async--cleanup-process is only called with a second argument in org-async--sentinel when (process-status process) is (or 'exit 'signal 'failed).