shithub: sox

Download patch

ref: c6b7f738caa13c26ed423d21f3246a60fd35075a
parent: b3574439c0f95623ddcc9329ba35c43001bb0569
author: cbagwell <cbagwell>
date: Sun Sep 18 20:59:18 EDT 2005

Print "Aborted" when user ctrl-c's.

--- a/src/sox.c
+++ b/src/sox.c
@@ -269,7 +269,12 @@
         free(file_desc[i]);
 
     if (status)
-        fprintf(stderr, "\n\nDone.\n");
+    {
+        if (user_abort)
+            fprintf(stderr, "\n\nAborted.\n");
+        else
+            fprintf(stderr, "\n\nDone.\n");
+    }
 
     return(0);
 }