I want to start a new process from my bash script which won't inherit parent file descriptors. I can't change the way these file descriptors are created.
Use case: error in application -> error hook -> kill the process and restart it
There is a similar topic for windows start without inheritance of parents file descriptors but it doesn't work for Linux.
Is this even possible in shell?
Thanks
UPDATE
I know that I can close those descriptors myself I just want to make sure that it isn't possible to start child with some magic option to skip copying of file descriptors. (because this option sounds reasonable to me)