]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/lily.scm
Issue 2759: Don't use /dev/stderr which is only defined on some systems
[lilypond.git] / scm / lily.scm
index 74c5562f48067052df4f7d10b8872ac8260e8a79..9bc04dbddf085f646046893197dd0f11e17dd918 100644 (file)
@@ -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)))))