|
Revision tags: v6.4.0, v6.4.0rc1, v6.5.0, v6.2.2, v6.2.1, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0, v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3, v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2, v5.4.1 |
|
| #
a2d71d01 |
| 04-Dec-2018 |
Levente Kurusa <lkurusa@acm.org> |
pkill(1): Add option -T to restrict to current terminal
This option is introduced for feature parity with killall(1) where it restricts to matching processes in the current terminal by specifying th
pkill(1): Add option -T to restrict to current terminal
This option is introduced for feature parity with killall(1) where it restricts to matching processes in the current terminal by specifying the -T option. While this is achievable via pkill(1)'s -t option, for feature parity and convenience, this commit implements the -T option.
Signed-off-by: Levente Kurusa <lkurusa@kernelstuff.org>
(aly) I've reviewed and revised the original patch: * Adjust the option orders in code and in the man page. * Check and copy the return of ttyname(), which can be NULL and is a internal static buffer. * Make option '-t' accept a full path to the terminal device. This simplifies the code by avoiding the strip of "/dev/". Meanwhile update the man page accordingly. * Fix some minor issues in the original patch.
DragonFly-bug: #3163
show more ...
|
|
Revision tags: v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1 |
|
| #
1b11ea06 |
| 09-Apr-2018 |
Sascha Wildner <saw@online.de> |
Remove a number of duplicated includes in userland.
|
|
Revision tags: v5.2.0, v5.3.0, v5.2.0rc, v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1, v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2, v4.4.1, v4.4.0, v4.5.0, v4.4.0rc, v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5, v4.0.4, v4.0.3, v4.0.2, v4.0.1 |
|
| #
9b5e1191 |
| 14-Nov-2014 |
Antonio Huete Jimenez <tuxillo@quantumachine.net> |
pkill - Fix a problem identifying system threads.
- As of commit 65a0e3d68b951f39cc39be7808e11e9de908d9fc the test to check whether a process is a system one or not was replaced by a wrong one.
pkill - Fix a problem identifying system threads.
- As of commit 65a0e3d68b951f39cc39be7808e11e9de908d9fc the test to check whether a process is a system one or not was replaced by a wrong one. Restore that behaviour so that they are excluded by pkill(1).
show more ...
|
|
Revision tags: v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc |
|
| #
a841db25 |
| 23-Apr-2014 |
Sascha Wildner <saw@online.de> |
Adjust newsyslog(8) and pkill(1) for the new PID_MAX.
Reported-by: marino
|
|
Revision tags: v3.6.2, v3.6.1, v3.6.0 |
|
| #
9a8c8446 |
| 09-Nov-2013 |
Matthew Dillon <dillon@apollo.backplane.com> |
pkill - Optimize pgrep -F
* Ask for a specific process instead of pulling down all processes when -F <pidfile> is specified. This is much much faster.
|
|
Revision tags: v3.7.1, v3.6.0rc |
|
| #
65a0e3d6 |
| 11-Oct-2013 |
John Marino <draco@marino.st> |
pgrep(1), pkill(1): Sync with FreeBSD to get the -F options
These functions haven't been touched since DragonFly 1.1 (2004), other than build tweaks. It was claimed that it would be "trivial" to ad
pgrep(1), pkill(1): Sync with FreeBSD to get the -F options
These functions haven't been touched since DragonFly 1.1 (2004), other than build tweaks. It was claimed that it would be "trivial" to add the -F options (pid file) but I wouldn't classify it as such. There is a pretty big diff between the FreeBSD and DragonFly 1.1 version. I had make some modifications, but the functions appear to work in the very short tests that I performed.
show more ...
|
|
Revision tags: v3.4.3, v3.4.2, v3.4.1, v3.4.0, v3.4.0rc, v3.5.0, v3.2.2, v3.2.1, v3.2.0, v3.3.0, v3.0.3, v3.0.2 |
|
| #
a632cd2d |
| 16-Mar-2012 |
Matthew Dillon <dillon@apollo.backplane.com> |
Merge branches 'hammer2' and 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into hammer2
|
| #
54499c33 |
| 10-Mar-2012 |
Chris Turner <c.turner@199technologies.com> |
pkill(1): add '-j jid' flag to restrict matches to jailed processes.
Add a '-j' option to pgrep(1)/pkill(1). Update manual page to reflect usage.
As DragonFlyBSD did not have this option previously
pkill(1): add '-j jid' flag to restrict matches to jailed processes.
Add a '-j' option to pgrep(1)/pkill(1). Update manual page to reflect usage.
As DragonFlyBSD did not have this option previously, the 'COMPATIBILITY' notes outlined in FreeBSD's '-j' options do not apply - namely, the '-j 0' option defaults to non-jailed processes, and '-1' is used to indicate all jailed processes should be matched. Also, the 'any'/'none' string options were not ported as they require more invasive changes.
Inspired-by: FreeBSD
show more ...
|
|
Revision tags: v3.0.1, v3.1.0, v3.0.0 |
|
| #
86d7f5d3 |
| 26-Nov-2011 |
John Marino <draco@marino.st> |
Initial import of binutils 2.22 on the new vendor branch
Future versions of binutils will also reside on this branch rather than continuing to create new binutils branches for each new version.
|
|
Revision tags: v2.12.0, v2.13.0, v2.10.1, v2.11.0, v2.10.0, v2.9.1, v2.8.2, v2.8.1, v2.8.0, v2.9.0, v2.6.3, v2.7.3, v2.6.2, v2.7.2, v2.7.1, v2.6.1, v2.7.0, v2.6.0, v2.5.1, v2.4.1, v2.5.0, v2.4.0, v2.3.2 |
|
| #
2a2493da |
| 08-Jun-2009 |
Aggelos Economopoulos <aoiko@cc.ece.ntua.gr> |
Merge branch 'master' of /home/aggelos/devel/dfly/dfly.git/
|
| #
2a7d6ab4 |
| 21-May-2009 |
Jordan Gordeev <jgordeev@dir.bg> |
Merge branch 'master' into amd64
|
| #
e4aeed71 |
| 17-May-2009 |
Matthew Dillon <dillon@apollo.backplane.com> |
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
|
| #
0181660a |
| 16-May-2009 |
Sascha Wildner <saw@online.de> |
pkill(1): Silence amd64 warning.
|
|
Revision tags: v2.3.1, v2.2.1, v2.2.0, v2.3.0, v2.1.1, v2.0.1 |
|
| #
5dfd06ac |
| 01-Feb-2007 |
Simon Schubert <corecode@dragonflybsd.org> |
Change kinfo_proc interface between kernel and userland.
Before, we were embedding a struct proc (among others) into struct kinfo_proc. Every time we change implementation details in the kernel, us
Change kinfo_proc interface between kernel and userland.
Before, we were embedding a struct proc (among others) into struct kinfo_proc. Every time we change implementation details in the kernel, userland has to be adapted (recompiled). In preparation for the coming LWP changes this interface has been reworked. Now kinfo_proc is a structure which does not depend on other structures on the kernel which are subject to change. Instead, the routines fill_kinfo_proc and fill_kinfo_lwp copy all values which are of interest between the kernel structure and the stable kinfo_proc structure.
Furthermore, this change adds infrastructure to export LWP-specific data. If userland requests LWP data, it sets the flag KERN_PROC_FLAG_LWP in the sysctl oid. This leads to multiple kinfo_procs being exported. If not set, the first LWP will used. This is like FreeBSD do it, and it seems easy and simple. Note that userland was not yet adjusted to actually request LWPs and aggregate this information if necessary. Besides, the kernel does not yet have more than one LWP per process anyways.
This introduces a new file, kern/kern_kinfo.c, which is shared between kernel and libkvm. This was done to avoid and remove code duplication. Now kvm_getprocs constructs a complete struct proc, including pointers, and then calls fill_kinfo_proc to do its job.
In-collaboration-with: Thomas E. Spanjaard <tgen@netphreax.net>
show more ...
|
| #
0e7f22f2 |
| 02-Aug-2005 |
Chris Pressey <cpressey@dragonflybsd.org> |
Style(9): - Add more explanatory comments. - Mark an unused parameter as __unused.
|
| #
4cfac1e6 |
| 15-Feb-2005 |
Chris Pressey <cpressey@dragonflybsd.org> |
Make pgrep(1) print a newline at EOL, as expected, instead of at the delimiter specified with the -d switch.
Submitted-by: Robert Nagy <robert_at_bsd_dot_hu> Same-as-in: OpenBSD: src/usr.bin/pkill.c
Make pgrep(1) print a newline at EOL, as expected, instead of at the delimiter specified with the -d switch.
Submitted-by: Robert Nagy <robert_at_bsd_dot_hu> Same-as-in: OpenBSD: src/usr.bin/pkill.c:1.8
show more ...
|
| #
a59669e4 |
| 06-Jan-2005 |
Chris Pressey <cpressey@dragonflybsd.org> |
Clarify/clean up code, make fewer assumptions about types: - Store pids/gids/uids/devs in a union instead of casting to a long; - Don't use the nonspecific LT_GENERIC list type; - Add a more specific
Clarify/clean up code, make fewer assumptions about types: - Store pids/gids/uids/devs in a union instead of casting to a long; - Don't use the nonspecific LT_GENERIC list type; - Add a more specific LT_PPID list type for parent pids; - Use NODEV to indicate the lack of a specified device; - Make the makelist() function more straightforward: - use only one switch statement instead of two cascading ones; - introduce a helper function parse_pid() to parse pids; - No functional changes.
show more ...
|
| #
95a53fe4 |
| 06-Jan-2005 |
Chris Pressey <cpressey@dragonflybsd.org> |
Style(9): - braces around multiline blocks - no blank line at start of function - remove extraneous semicolon.
|
| #
184a7112 |
| 20-Dec-2004 |
Chris Pressey <cpressey@dragonflybsd.org> |
Bump WARNS to 6: - Remove redundant nested extern declarations; - Constify some char *'s, introducing new variables where existing variables were being used more than once for different purposes; -
Bump WARNS to 6: - Remove redundant nested extern declarations; - Constify some char *'s, introducing new variables where existing variables were being used more than once for different purposes; - Adjust the signedness of some integer variables to reflect their usage in comparisons; - Use a struct timeval instead of a pair of integer variables to record the 'best' time.
show more ...
|
| #
ec07c9d7 |
| 25-Oct-2004 |
Liam J. Foy <liamfoy@dragonflybsd.org> |
- Remove main() proto
Submitted by: Douwe Kiela <virtus@wanadoo.nl>
|
| #
4e3518d8 |
| 28-Jul-2004 |
Chris Pressey <cpressey@dragonflybsd.org> |
DragonFly-ize pgrep/pkill:
- Bump date in pkill.1 and refine the history of these utilities. - Tailor pkill.c to the specifics of DragonFly's libkvm. This makes pkill.c buildable, and makes the re
DragonFly-ize pgrep/pkill:
- Bump date in pkill.1 and refine the history of these utilities. - Tailor pkill.c to the specifics of DragonFly's libkvm. This makes pkill.c buildable, and makes the resulting utilities capable of producing reasonable and seemingly correct output.
Much-assistance-by: hmp
show more ...
|
| #
df558cd9 |
| 28-Jul-2004 |
Chris Pressey <cpressey@dragonflybsd.org> |
Import from NetBSD: `pgrep' and `pkill' utilities for finding and signalling processes by name.
This initial commit brings in the following files directly from NetBSD, unchanged except for the addit
Import from NetBSD: `pgrep' and `pkill' utilities for finding and signalling processes by name.
This initial commit brings in the following files directly from NetBSD, unchanged except for the addition of $DragonFly$ ID tags:
$NetBSD: Makefile,v 1.1 2002/03/01 11:21:58 ad Exp $ $NetBSD: pkill.1,v 1.8 2003/02/14 15:59:18 grant Exp $ $NetBSD: pkill.c,v 1.7 2004/02/15 17:03:30 soren Exp $
The next few commits will DragonFly-ize these files and hook them up to the build.
Initially-requested-by: Munish Chopra <chopra at soulwax dot net> Approved-by: dillon
show more ...
|
| #
e0ecab34 |
| 11-Aug-2010 |
Matthew Dillon <dillon@apollo.backplane.com> |
buildworld - Fix breakage
* More cases where sys/user.h is not included early enough.
Reported-by: swildner
|