]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 2759: Don't use /dev/stderr which is only defined on some systems
authorDavid Kastrup <dak@gnu.org>
Tue, 11 Sep 2012 15:47:40 +0000 (17:47 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 14 Sep 2012 05:58:52 +0000 (07:58 +0200)
Instead, the port associated with file descriptor 2 is being used
which should be equivalent.

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)))))