Jilles Tjoelker escribiĆ³:
And it seems to make sense to add this functionality to pkill/pgrep
binary, creating another hardlink to it.

Hmm, pwait's syntax is incompatible: it takes pids (pkill says: use
kill) and the -v option does something totally different.
That's not an issue. You can declare

extern char *__progname;

and use it to parse the command line arguments in a different way. Of course, it only makes sense if pkill/pgrep has some inner functionality you can make use of to avoid duplication.

--
Gabor Kovesdan
FreeBSD Volunteer

EMAIL: ga...@freebsd.org .:|:. ga...@kovesdan.org
WEB:   http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to