~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doxygen cleanup
[disorder]
/
server
/
normalize.c
diff --git
a/server/normalize.c
b/server/normalize.c
index
085d4df
..
28faa81
100644
(file)
--- a/
server/normalize.c
+++ b/
server/normalize.c
@@
-73,7
+73,7
@@
static void help(void) {
/* display version number and terminate */
static void version(void) {
/* display version number and terminate */
static void version(void) {
- xprintf("
disorder-normalize version %s\n
", disorder_version_string);
+ xprintf("
%s
", disorder_version_string);
xfclose(stdout);
exit(0);
}
xfclose(stdout);
exit(0);
}
@@
-249,6
+249,13
@@
int main(int argc, char attribute((unused)) **argv) {
}
if(outfd != -1)
xclose(outfd);
}
if(outfd != -1)
xclose(outfd);
+ if(pid != -1) {
+ /* There's still a converter running */
+ if(waitpid(pid, &n, 0) < 0)
+ fatal(errno, "error calling waitpid");
+ if(n)
+ fatal(0, "sox failed: %#x", n);
+ }
return 0;
}
return 0;
}