Announcement

Collapse
No announcement yet.

Too many periods in email address

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Does your code create this:

    Code:
    -rw-r--r-- 1 www-data www-data    0 2025-09-26 22:08:17 gmail_block_log.lock
    And if it does, why?
    The Linux Community has given me much. I do what I can to return the favor!

    Comment


      #47
      Yes it does, that's to prevent 2 simultaneous requests to edit the file at the same time. If a file is locked while it is being edited, another request has to wait for it to be released (unlocked) before being able to edit it
      Buy me a coffeePayPal QR Code
      My Amazon Affiliate Link
      Fast vBulletin VPS Host:
      This site is hosted by IONOS

      Comment


        #48
        Is the file persistent; it remains until the MOD is triggered, at which point it is removed, the file appended, and a new lock file created? This file didn't exist when I was testing the MOD.
        The Linux Community has given me much. I do what I can to return the favor!

        Comment


          #49
          The lock file is actually for log rotation. It should only create the lock file when it's time to rotate the logs. I'll update the mod to do that.

          But as for keeping or deleting the lock file, it is a best practice to keep it around permanently. It’s just a tiny empty file that serves as a synchronization point. The cost is negligible, and it avoids the race condition I described. But I can delete it for Unix/Linux systems safely but not for Windows where deleting may fail if another process has it open. I'll include that in the update.​
          Buy me a coffeePayPal QR Code
          My Amazon Affiliate Link
          Fast vBulletin VPS Host:
          This site is hosted by IONOS

          Comment


            #50
            Originally posted by glennrocksvb View Post
            it is a best practice to keep it around permanently.
            Thank you for the explanation.
            The Linux Community has given me much. I do what I can to return the favor!

            Comment

            Latest Posts

            Collapse

            Working...
            X
            Searching...Please wait.
            An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

            Please push the back button and reload the previous window.'
            An unexpected error was returned: 'Your submission could not be processed because the token has expired.

            Please push the back button and reload the previous window.'
            An internal error has occurred and the module cannot be displayed.
            There are no results that meet this criteria.
            Search Result for "|||"