diff options
author | jilles <jilles@FreeBSD.org> | 2015-12-04 16:32:29 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2015-12-04 16:32:29 +0000 |
commit | 24858cf7bbd333bc022ef13635e8f440888340d7 (patch) | |
tree | c244480bb8206451d5c2d6bab411c018e52c8607 /lib/libc/string/strmode.c | |
parent | d1dd0d2cc3e7d2ad550c4e8dfeca3c30b0d8699d (diff) | |
download | FreeBSD-src-24858cf7bbd333bc022ef13635e8f440888340d7.zip FreeBSD-src-24858cf7bbd333bc022ef13635e8f440888340d7.tar.gz |
rc.subr: Check for running daemons before a custom start_cmd is executed.
Currently rc scripts implementing their own start_cmd do not enjoy the
benefits of rc.subr's own check for rc_pid.
This leads to around a third of ports with such a start_cmd not to check for
the process at all and two thirds of ports to re-implement this check
(sometimes wrongly).
This patch moves the check for rc_pid to before ${rc_arg}_cmd is executed.
Submitted by: Dirk Engling
Reviewed by: feld
MFC after: 1 week
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D4156
Diffstat (limited to 'lib/libc/string/strmode.c')
0 files changed, 0 insertions, 0 deletions