TIL you can get the path to the current executable with getauxval(AT_EXECFN) on Linux, no messing with /proc necessary. It's a separate block of memory filled by the kernel, not argv[0] or anything.
-
-
In particular if you re-exec'd /proc/self/exe or if fexecve exec'd /proc/self/fd/%d, then AT_EXECFN is utterly meaningless.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.