Answers for "get umask of process using gdb"

0

get umask of process using gdb

$ gdb --pid=4321
(gdb) call/o umask(0)
$1 = 077
(gdb) call umask($1)
$3 = 0
Posted by: Guest on January-28-2021

Browse Popular Code Answers by Language