From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F177B138332 for ; Tue, 22 May 2018 22:12:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AEF82E088F; Tue, 22 May 2018 22:12:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8CDB9E088F for ; Tue, 22 May 2018 22:12:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 508B6335C84 for ; Tue, 22 May 2018 22:12:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4842029E for ; Tue, 22 May 2018 22:12:43 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1527009562.4e0eace837287845504c9895429dc9f64872d075.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/librc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/librc/librc.c src/librc/rc.h.in X-VCS-Directories: src/librc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 4e0eace837287845504c9895429dc9f64872d075 X-VCS-Branch: master Date: Tue, 22 May 2018 22:12:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ec2cb4fe-47e7-4a28-84b6-6069b4fc0481 X-Archives-Hash: b76e99d0a5138e4880e7ce791eea1a9d commit: 4e0eace837287845504c9895429dc9f64872d075 Author: William Hubbs gmail com> AuthorDate: Thu May 17 22:42:14 2018 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue May 22 17:19:22 2018 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=4e0eace8 librc: Add crashed state src/librc/librc.c | 1 + src/librc/rc.h.in | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librc/librc.c b/src/librc/librc.c index ee65b00a..4473a1bb 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -50,6 +50,7 @@ static const rc_service_state_name_t rc_service_state_names[] = { { RC_SERVICE_HOTPLUGGED, "hotplugged" }, { RC_SERVICE_FAILED, "failed" }, { RC_SERVICE_SCHEDULED, "scheduled"}, + { RC_SERVICE_CRASHED, "crashed"}, { 0, NULL} }; diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in index 1f984d52..d2e51dc6 100644 --- a/src/librc/rc.h.in +++ b/src/librc/rc.h.in @@ -188,7 +188,8 @@ typedef enum /* Optional states service could also be in */ RC_SERVICE_FAILED = 0x0200, RC_SERVICE_SCHEDULED = 0x0400, - RC_SERVICE_WASINACTIVE = 0x0800 + RC_SERVICE_WASINACTIVE = 0x0800, + RC_SERVICE_CRASHED = 0x1000, } RC_SERVICE; /*! Add the service to the runlevel