Post B6eaQ8i4ez3eQ8jEtU by diffie@mk.absturztau.be
 (DIR) More posts by diffie@mk.absturztau.be
 (DIR) Post #B6eXGbWuLzqr2tGdtY by diffie@mk.absturztau.be
       0 likes, 0 repeats
       
       Why does a lot of newer utilities just read stdin and discard the data when starting/exiting?I've seen many tools that discard the stdin just before exiting, even when the program is basically non-interactive.Now I noticed that adb shell discards the stdin just before starting the shell.
       
 (DIR) Post #B6eXGbhXiSMHZsF8TI by brettm@swarm.coiloptic.org
       0 likes, 0 repeats
       
       @diffie@mk.absturztau.be could it be some kind of security thing? stop someone injecting some big payload into a programs memory to trampoline to something else?
       
 (DIR) Post #B6eaQ8i4ez3eQ8jEtU by diffie@mk.absturztau.be
       0 likes, 0 repeats
       
       @brettm@swarm.coiloptic.org But they even don't have to read anything from the stdin or touch FD zero in any way! Some programs just read stdin to discard the data.
       
 (DIR) Post #B6eaQ92HRrDlQoBNOC by brettm@swarm.coiloptic.org
       0 likes, 0 repeats
       
       @diffie@mk.absturztau.be idk that's just a guess from me!