Skip to content

Hacky LD_PRELOAD library that allows setting the process title via putenv()

License

Notifications You must be signed in to change notification settings

theawesomestrob/setproctitle-preload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

setproctitle-preload

Hacky LD_PRELOAD library that allows setting the process title via putenv()

Compile with

gcc -shared -fPIC preload_setproctitle.c -o preload_setproctitle.so -ldl

And run like

LD_PRELOAD=$PWD/preload_setproctitle.so python -c "import os,signal; os.putenv('SETPROCTITLE','this is a test'); signal.pause()" &
ps -elf | grep 'this is a test'

About

Hacky LD_PRELOAD library that allows setting the process title via putenv()

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages