(This fixes issue #1028)
If `-dlog-file' was not specified along with `-dseparate-log-files',
certain log messages (the "ping" log messages) were sent to /dev/tty.
However, this was causing problems for machines building LilyPond that
could not write to /dev/tty (no controlling tty).
The solution is to write to /dev/stderr instead, which is
common-practice for logging.
See the Debian bug report for details:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572290
(if separate-logs
(open-file (if (string-or-symbol? (ly:get-option 'log-file))
(format "~a.log" (ly:get-option 'log-file))
- "/dev/tty") "a") #f))
+ "/dev/stderr") "a") #f))
(do-measurements (ly:get-option 'dump-profile))
(handler (lambda (key failed-file)
(set! failed (append (list failed-file) failed)))))