Date: Sat, 07 Nov 2009 22:17:09 +0100 From: Gabor Kovesdan <gabor@FreeBSD.org> To: Jilles Tjoelker <jilles@stack.nl> Cc: Kostik Belousov <kostikbel@gmail.com>, freebsd-hackers@freebsd.org Subject: Re: [patch] add pwait utility Message-ID: <4AF5E3D5.3050009@FreeBSD.org> In-Reply-To: <20091107201954.GA84099@stack.nl> References: <20091106222446.GB60707@stack.nl> <20091107112832.24b0c0d4@ernst.jennejohn.org> <20091107130136.GI2331@deviant.kiev.zoral.com.ua> <20091107201954.GA84099@stack.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AF5E3D5.3050009>