lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

Adrian Perez wrote:
>     snprintf(sym, "/proc/%i/exe", getpid());

Umm, better use: /proc/self/exe
On FreeBSD try: /proc/curproc/file (it may return "unknown" though)

Bye,
     Mike