Commit 8f5a8424 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

imlib/rotate: Fail gracefully when fork() fails

parent b72ab18c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1173,7 +1173,8 @@ void feh_edit_inplace_lossless(winwidget w, int op)

	if ((pid = fork()) < 0) {
		im_weprintf(w, "lossless %s: fork failed:", op_name);
		exit(1);
		free(file_str);
		return;
	}
	else if (pid == 0) {

@@ -1197,8 +1198,7 @@ void feh_edit_inplace_lossless(winwidget w, int op)
		}
	}
	if ((pid = fork()) < 0) {
		im_weprintf(w, "lossless %s: cannot fix rotation: fork:", op_name);
		exit(1);
		im_weprintf(w, "lossless %s: fork failed while updating EXIF tags:", op_name);
	}
	else if (pid == 0) {