From: David Kastrup Date: Tue, 11 Sep 2012 15:47:40 +0000 (+0200) Subject: Issue 2759: Don't use /dev/stderr which is only defined on some systems X-Git-Tag: release/2.17.3-1~18 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f8a6295ef663dc5ee874b15ceb0763cf7f22e65b;p=lilypond.git Issue 2759: Don't use /dev/stderr which is only defined on some systems Instead, the port associated with file descriptor 2 is being used which should be equivalent. --- diff --git a/scm/lily.scm b/scm/lily.scm index 74c5562f48..9bc04dbddf 100644 --- a/scm/lily.scm +++ b/scm/lily.scm @@ -809,10 +809,11 @@ PIDs or the number of the process." (let* ((failed '()) (separate-logs (ly:get-option 'separate-log-files)) (ping-log - (if separate-logs - (open-file (if (string-or-symbol? (ly:get-option 'log-file)) - (format #f "~a.log" (ly:get-option 'log-file)) - "/dev/stderr") "a") #f)) + (and separate-logs + (if (string-or-symbol? (ly:get-option 'log-file)) + (open-file (format #f "~a.log" (ly:get-option 'log-file)) + "a") + (fdes->outport 2)))) (do-measurements (ly:get-option 'dump-profile)) (handler (lambda (key failed-file) (set! failed (append (list failed-file) failed)))))