stackplz icon indicating copy to clipboard operation
stackplz copied to clipboard

请教

Open enenH opened this issue 1 year ago • 4 comments

监听可执行进程 按照这个思路 shell 1 echo $$ shell 2 stackplz -p pid shell 1 ./foo 如果foo里写了这样的代码 If (fork()>0){ exit(0); } 就无法监听到后续子进程的内容了怎么办

enenH avatar Dec 13 '24 17:12 enenH

现在已经无法通过fork进行保活了

lixioaolong avatar Dec 14 '24 06:12 lixioaolong

我只想监听 和保活有啥关系

enenH avatar Dec 16 '24 23:12 enenH

你写一个demo就知道了,只fork什么都不做,logcat会提示你 PROCESS STARTED、PROCESS ENDED反反复复。程序的生命周期都结束了还怎么监听。

霸气哥(北京一区) @.***

lixioaolong avatar Dec 17 '24 03:12 lixioaolong

什么玩意儿,试过了,fork出来的进程变成孤儿进程了而已

enenH avatar Dec 17 '24 09:12 enenH