Bug 277208 - rc.subr: sometimes fails to run protect(1)
Summary: rc.subr: sometimes fails to run protect(1)
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-rc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-21 06:24 UTC by Tatsuki Makino
Modified: 2024-02-21 14:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tatsuki Makino 2024-02-21 06:24:45 UTC
Setting *_oomprotect to the enabled state will run protect on that service, which sometimes fails.
The following output is left on the console when it appears to have failed.

protect: option requires an argument -- p
usage: protect [-i] command
       protect [-cdi] -g pgrp | -p pid

This is displayed when pid is not specified in the -p option.
In other words, it is failing to obtain the pid.
Furthermore, they are probably trying to get the pid before the pid is ready to be retrieved.