From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTPS id 499E34D77C
	for <ffmpegdev@gitmailbox.com>; Sat, 19 Apr 2025 22:31:12 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DC4B3687DBD;
	Sun, 20 Apr 2025 01:31:07 +0300 (EEST)
Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com
 [209.85.214.176])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7C1DA687C60
 for <ffmpeg-devel@ffmpeg.org>; Sun, 20 Apr 2025 01:31:01 +0300 (EEST)
Received: by mail-pl1-f176.google.com with SMTP id
 d9443c01a7336-223f4c06e9fso25714895ad.1
 for <ffmpeg-devel@ffmpeg.org>; Sat, 19 Apr 2025 15:31:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1745101859; x=1745706659; darn=ffmpeg.org;
 h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date
 :message-id:from:from:to:cc:subject:date:message-id:reply-to;
 bh=da7wc33l9YNY7LrTLvwIjnAXU5uFnPKkArL/DvoGIxM=;
 b=bHFcEPFRgyfXi0ks65qLWopms/XgnvE1Jeh79ATw91A5RcRpFFxdnT5taE1bgh+Jai
 z5d/i90xi35p+kUrragyc5iIohbZIQp95Ycv8eQTuzsMAB/f8riUX0VEszzhg3VeNcHD
 HboYqH+B0LeT4BDboQ2Cf/9CJ2JLK8a5OI8Y/GS5DeX0V/W08psnPvUX/pbM338Vh3RL
 DnMVlWK0yqaPc4q2UHrmglIQOK+17M1L448XMcI9kwEVYze3mzjUUhV/ob9z84+DdrE5
 tCT0Xgqy9dntxlDzKWFaXF2LD8+5kmb1/ALDYDGyReUQfbHfzBKy4aMCFzYFnz1nLbAQ
 rASA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1745101859; x=1745706659;
 h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date
 :message-id:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=da7wc33l9YNY7LrTLvwIjnAXU5uFnPKkArL/DvoGIxM=;
 b=ifWS4bLCiy1ZXNSuoZnY98zcNTJ/bsbH79hugBz1Qm1OBJWTQBxKNHHsAxkxx2NtQK
 c9tI8jJ3dGUlvyOcINT4uzFw2VgJT1OgNvZyzVp/aU9rllOunFF++eGYKerCDBuQtuYy
 vWhyBUkDCMJmlbBFKpK5r/Pv1yArAJ6GP7oZT4LUTpj73BGqW23QR8XXcEEc47z5r11e
 077MzW8qk2SVOYBkZ6R0k4TXfwbpSUusGFae9XbzI/o0o1Am7/z5jXxTktALS3Rpp48Z
 6kgN8ngQiIUlAFFNt+j5fdyfGyNYwJvTL1ppMcsy+3XfV2Axix2RcHlKMX5popjNL9Xc
 Ieaw==
X-Gm-Message-State: AOJu0YzsTwSk9cirMGEQtDyP+Oysm7xauL2PhgZgbm9lbEGn4bWhMq51
 aCA2kJLKuE5bvMxlk5YeKUmS+l1HWQdiDM6LLSvcQkvTZt9E6dI14DyvkA==
X-Gm-Gg: ASbGncsbvm5bp89GVwfR0AH0/lPNE7blGy8gIcK/7BHcCUnkrJiNfvoxi8Cwh8TyTv6
 +Lv5GTuIjwvJwzLpZtVwkNZ9AFoB6C+Hw/Nx9ySvt74OrIIpbn9quN6I2Jk5YJppqNkNeMc4xdS
 KM2GP10zzGCWl6ZQ4j6/G43I9B6vpZNMAa++bhk9caI4xxKjWTbWwWi546zhj/Poo0+JpvTYHuu
 g7sREBYZEd8xLkxP0lQV7JuPaPus7R8Q/c6wJL5BrNNqN7Y6bGruYNfLTYAiUedJxmm/9V2Y3Gw
 wWJpLD10W61cpfJtVmaK8TUfZJ4U9LYA7oAgAgKsB0hS5CIMqe1dJZfIEvM=
X-Google-Smtp-Source: AGHT+IELiqnL9dy9a8RxCQi0eIG7Q9nsZHeiQUV5GwgQJ2zG0QHS17iirOKZylS47zfKVJrwu26QQQ==
X-Received: by 2002:a17:902:d48d:b0:221:8568:c00f with SMTP id
 d9443c01a7336-22c50a9dc61mr94025265ad.0.1745101859364; 
 Sat, 19 Apr 2025 15:30:59 -0700 (PDT)
Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-22c50ed1c26sm38469845ad.190.2025.04.19.15.30.58
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 19 Apr 2025 15:30:59 -0700 (PDT)
From: softworkz <ffmpegagent@gmail.com>
X-Google-Original-From: softworkz <softworkz@hotmail.com>
Message-Id: <pull.69.ffstaging.FFmpeg.1745101853603.ffmpegagent@gmail.com>
Date: Sat, 19 Apr 2025 22:30:53 +0000
Fcc: Sent
MIME-Version: 1.0
To: ffmpeg-devel@ffmpeg.org
Subject: [FFmpeg-devel] [PATCH] fftools/ffmpeg: Log 'EXIT' on exit
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: softworkz <softworkz@hotmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/pull.69.ffstaging.FFmpeg.1745101853603.ffmpegagent@gmail.com/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>

From: softworkz <softworkz@hotmail.com>

When viewing logs, there are situations where it is not entirely
clear whether ffmpeg CLI has exited gracefully. The two primary cases
are

- A crash/segfault has occured
  Windows for example doesn't output any message to the calling shell
- The process has been terminated (e.g. killed externally)

Printing "EXIT" on exit provides a reliable indication that the
process has exited normally.

Signed-off-by: softworkz <softworkz@hotmail.com>
---
    fftools/ffmpeg: Log 'EXIT' on exit
    
    When viewing logs, there are situations where it is not entirely clear
    whether ffmpeg CLI has exited gracefully. The two primary cases are
    
     * A crash/segfault has occured Windows for example doesn't output any
       message to the calling shell
     * The process has been terminated (e.g. killed externally)
    
    Printing "EXIT" on exit provides a reliable indication that the process
    has exited normally.
    
    Signed-off-by: softworkz softworkz@hotmail.com

Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-69%2Fsoftworkz%2Fsubmit_exit_message-v1
Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-69/softworkz/submit_exit_message-v1
Pull-Request: https://github.com/ffstaging/FFmpeg/pull/69

 fftools/ffmpeg.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index dc321fb4a2..26746699ff 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -1012,5 +1012,8 @@ finish:
 
     sch_free(&sch);
 
+    av_log(NULL, AV_LOG_INFO, "\n");
+    av_log(NULL, AV_LOG_INFO, "EXIT\n");
+
     return ret;
 }

base-commit: 7cd1edeaa410d977a9f1ff8436f480cb45b80178
-- 
ffmpeg-codebot
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".