@@ -101,7 +101,7 @@ int main(int argc, char* argv[])
101
101
meminfo_t m = parse_meminfo ();
102
102
103
103
int c ;
104
- const char * short_opt = "m:s:M:S:kinN :dvr:ph" ;
104
+ const char * short_opt = "m:s:M:S:kingN :dvr:ph" ;
105
105
struct option long_opt [] = {
106
106
{ "prefer" , required_argument , NULL , LONG_OPT_PREFER },
107
107
{ "avoid" , required_argument , NULL , LONG_OPT_AVOID },
@@ -173,6 +173,9 @@ int main(int argc, char* argv[])
173
173
args .notify = true;
174
174
fprintf (stderr , "Notifying through D-Bus\n" );
175
175
break ;
176
+ case 'g' :
177
+ args .kill_process_group = true;
178
+ break ;
176
179
case 'N' :
177
180
args .notify = true;
178
181
fprintf (stderr , "Notifying through D-Bus, argument '%s' ignored for compatability\n" , optarg );
@@ -220,6 +223,7 @@ int main(int argc, char* argv[])
220
223
" -i user-space oom killer should ignore positive\n"
221
224
" oom_score_adj values\n"
222
225
" -n enable d-bus notifications\n"
226
+ " -g kill all processes within a process group\n"
223
227
" -d enable debugging messages\n"
224
228
" -v print version information and exit\n"
225
229
" -r INTERVAL memory report interval in seconds (default 1), set\n"
0 commit comments