p.waitFor(); Log.log(Log.TRACE, MODULE, "Returned with value " + p.exitValue());
int exitValue = p.waitFor(); Log.log(Log.TRACE, MODULE, "Returned with value " + exitValue);
	private static File jpegtranExec(String filename, String command) throws IOException, InterruptedException {		File r;		StringBuffer cmdline = new StringBuffer(jpegtranPath);		cmdline.append(" -copy all");		cmdline.append(command);		cmdline.append(" \"").append(filename).append("\"");		r = File.createTempFile("res"			, "." + GalleryFileFilter.getExtension(filename), tmpDir);		toDelete.add(r);		cmdline.append(" \"").append(r.getPath()).append("\"");		Log.log(Log.TRACE, MODULE, "Executing " + cmdline.toString());		Process p = Runtime.getRuntime().exec(cmdline.toString());		p.waitFor();		Log.log(Log.TRACE, MODULE, "Returned with value " + p.exitValue());		if (p.exitValue() != 0) {			Log.log(Log.CRITICAL, MODULE, "jpegtran doesn't seem to be working. Disabling");			useJpegtran = false;			r = null;		}		return r;	}