Skip to content

Commit

Permalink
dinit: Mention new added features in "--version" argument output
Browse files Browse the repository at this point in the history
The new features are "capabilities", "io-priority" and "oom-score-adjust"

Signed-off-by: Mobin Aydinfar <[email protected]>
  • Loading branch information
mobin-2008 committed Nov 27, 2024
1 parent 90546af commit b7c78e2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/dinit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,15 @@ static void printVersion()
#endif
#if USE_INITGROUPS
+1
#endif
#if SUPPORT_CAPABILITIES
+1
#endif
#if SUPPORT_IOPRIO
+1
#endif
#if SUPPORT_OOM_ADJ
+1
#endif
;
if (feature_count != 0) {
Expand All @@ -1225,6 +1234,15 @@ static void printVersion()
#endif
#if USE_INITGROUPS
" supplemental-groups"
#endif
#if SUPPORT_CAPABILITIES
" capabilities"
#endif
#if SUPPORT_IOPRIO
" io-priority"
#endif
#if SUPPORT_OOM_ADJ
" oom-score-adjust"
#endif
"\n";
}
Expand Down

0 comments on commit b7c78e2

Please sign in to comment.