Changes in 22.9
===============
* short option l returned in fuser Debian #539087
+ * long options terminated with 0s Debian #551833
+ * fuser only kills normal processes, patch thanks to Erik Li SF# 2892724
Changes in 22.8
===============
{"ipv6", 0, NULL, '6'},
#endif
{"SIG", 1, NULL, 'S'},
-
-
+ { 0, 0, 0, 0 }
};
#ifdef WITH_IPV6
struct procs *pptr;
for (pptr = proc_head; pptr != NULL; pptr = pptr->next) {
- if ((opts & OPT_INTERACTIVE) && (ask(pptr->pid) == 0))
- continue;
- if (kill(pptr->pid, sig_number) < 0) {
- fprintf(stderr, _("Could not kill process %d: %s\n"),
- pptr->pid, strerror(errno));
+ if ( pptr->proc_type == PTYPE_NORMAL ){
+ if ((opts & OPT_INTERACTIVE) && (ask(pptr->pid) == 0))
+ continue;
+ if ( kill(pptr->pid, sig_number) < 0) {
+ fprintf(stderr, _("Could not kill process %d: %s\n"),
+ pptr->pid, strerror(errno));
+ }
}
}
opterr = 0;
#ifdef WITH_SELINUX
- while ( (optc = getopt_long_only(argc,argv,"egilqrs:u:vwZ:VI",options,NULL)) != EOF) {
+ while ( (optc = getopt_long_only(argc,argv,"egilqrs:u:vwZ:VI",options,NULL)) != -1) {
#else
- while ( (optc = getopt_long_only(argc,argv,"egilqrs:u:vwVI",options,NULL)) != EOF) {
+ while ( (optc = getopt_long_only(argc,argv,"egilqrs:u:vwVI",options,NULL)) != -1) {
#endif
switch (optc) {
case 'e':