>From: Alan Teague [mailto:[EMAIL PROTECTED] 
>Subject: Re: Running PAR generated exe problem

>  char exelink[32]; /* Enough to hold fixed characters plus pid */
>  int mypid = getpid();
>  ...
>  /* Create full path to exe link in proc filesystem */
>  snprintf(31, exelink, "/proc/%d/exe", mypid);

Simpler is

#define exelink "/proc/self/exe"

Cheers, Roderich

Reply via email to