Anonymous

Procfs: Difference between revisions

From dankwiki
160 bytes added ,  09:43, 11 October 2019
Line 60: Line 60:
echo "$$ Changed my name to $1!"
echo "$$ Changed my name to $1!"
suck
suck
[schwarzgerat](0) $ chmod 755 p && ./p bigdumbsackofshit
[schwarzgerat](0) $ chmod 755 p && ./p bigdumb (sometimes not, though; see below):sackofshit
30819 c bash e (bash)
30819 c bash e (bash)
30819 Changed my name to bigdumbsackofshit!
30819 Changed my name to bigdumbsackofshit!
Line 83: Line 83:
[schwarzgerat](0) $  
[schwarzgerat](0) $  
</pre>
</pre>
Unfortunately, <tt>proc/PID/status</tt> cheerfully leaves out several fields from <tt>stat</tt>, including <tt>flags</tt>.


==See Also==
==See Also==
* The [[sysfs]] page
* The [[sysfs]] page