Handling argc==0 in the kernel
Handling argc==0 in the kernel
Posted Feb 1, 2022 14:57 UTC (Tue) by mathstuf (subscriber, #69389)In reply to: Handling argc==0 in the kernel by NYKevin
Parent article: Handling argc==0 in the kernel
I've actually played around with this before. So if you create an executable and check its `/proc/$pid/exe` (I think I was actually playing with `/proc/$pid/fd/$n`, but I imagine it's similar behavior). It is linked to `/path/to/exe`. If you delete it, the symlink now "points to" `/path/to/exe (deleted)`. If you then create *this* path, the symlink is still broken even though the "target path" exists if you manually use the `readlink` result. Creating the original path also keeps it in the "(deleted)" state IIRC.
