mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
sd-json: drop sd_json_dispatch_pid() again, as we prefer json_dispatch_pidref() now
The calls are now unused, and we generally prefer if people send a PID triplet rather than a single PID, hence stop supporting a high-level dispacher for pid_t.
This commit is contained in:
@@ -150,7 +150,6 @@ static inline bool sched_priority_is_valid(int i) {
|
||||
}
|
||||
|
||||
#define PID_AUTOMATIC ((pid_t) INT_MIN) /* special value indicating "acquire pid from connection peer" */
|
||||
#define PID_INVALID ((pid_t) 0) /* default value for "invalid pid" */
|
||||
|
||||
static inline bool pid_is_valid(pid_t p) {
|
||||
return p > 0;
|
||||
@@ -160,10 +159,6 @@ static inline bool pid_is_automatic(pid_t p) {
|
||||
return p == PID_AUTOMATIC;
|
||||
}
|
||||
|
||||
static inline bool pid_is_valid_or_automatic(pid_t p) {
|
||||
return pid_is_valid(p) || pid_is_automatic(p);
|
||||
}
|
||||
|
||||
pid_t getpid_cached(void);
|
||||
void reset_cached_pid(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user