Handling argc==0 in the kernel
Handling argc==0 in the kernel
Posted Feb 7, 2022 9:28 UTC (Mon) by jwilk (subscriber, #63328)In reply to: Handling argc==0 in the kernel by nybble41
Parent article: Handling argc==0 in the kernel
"ln /proc/$PID/exe foo" fails with EXDEV, because it's trying to hardlink the symlink that resides in /proc.
You probably wanted "ln -L /proc/$PID/exe foo" to dereference the symlink… which still doesn't work, but at least you get a more understandable error message. (The dereferencing happens on the kernel side, so it could work in principle.)
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
