in reply to Re: Unlink not deleting, Threading issue?
in thread Unlink not deleting, Threading issue?

You will also need to pass -U flag to Perl.
No you won't. Unless the OP is trying (as root) to direcltly unlink a directory on an ancient UNIX variant, the -U flag is irrelevant.

Dave.

  • Comment on Re^2: Unlink not deleting, Threading issue?

Replies are listed 'Best First'.
Re^3: Unlink not deleting, Threading issue?
by taint (Chaplain) on Jun 05, 2014 at 13:08 UTC
    Greetings, dave_the_m.

    The OP (pimperator) mentions Super User twice in the post.

    ...the user has super-user privileges...
    and
    After doing some reading I see that unlink() will not work if the file is open or if the user doesn't have superuser privileges, which is not the case for both.
    Which is why I felt it pertinent to mention the -U flag.

    --Chris

    ¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

      But the -U flag is only for unlinking directories, not files, and even then it only works on a few ancient UNIX variants. Systems like Linux don't allow you unlink() directories with or without -U.

      And unless there's some documentation I missed, -U does not affect whether Windows can unlink opened files.

      Dave.

      A reply falls below the community's threshold of quality. You may see it by logging in.