summaryrefslogtreecommitdiff
path: root/extra/dvd+rw-tools/dvd+rw-tools-7.0-wexit.patch
blob: e7910cbdd7b825b027ca7d731972ab558fcc8500 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- dvd+rw-tools-7.0/dvd+rw-format.cpp.wexit	2007-06-21 12:42:30.000000000 +0200
+++ dvd+rw-tools-7.0/dvd+rw-format.cpp	2007-06-21 12:44:13.000000000 +0200
@@ -245,7 +245,7 @@ int main (int argc, char *argv[])
 	alarm(1);
 	while ((waitpid(pid,&i,0) != pid) && !WIFEXITED(i)) ;
 	if (WEXITSTATUS(i) == 0) fprintf (stderr,"\n");
-	exit (0);
+	exit (WEXITSTATUS(i));
     }
 #endif