VKERNEL Pidfile patch

Sascha Wildner saw at online.de
Sun Jun 17 07:19:06 PDT 2007


Chris Turner wrote:
Joerg Sonnenberger wrote:
On Sun, Jun 17, 2007 at 12:22:54AM -0400, Chris Turner wrote:
  - doing this 'inline' within the getopt processing. Felt this
    was simpleenough a task that that wasn't a big deal, but I
    can see how some might not like it that way.
How does this work if -p is specified more than once?
You don't have to strdup optarg if you don't modify argv.
Joerg
Updated version:

 - only handles 1 pidfile, which is the last -p argument specified.
 - pidfile processing moved to function for clarity
 - non-strduping of optarg
Thanks,

  - Chris


Uh, can you use diff -u please?

Sascha

--
http://yoyodyne.ath.cx




More information about the Submit mailing list