To detach from the parent process, fork once and make the old process exit. No need to do that twice.
Attach a file by drag & drop or click to upload