Help for this page

Select Code to Download


  1. or download this
    $SEM = CREATE SEMAPHORE;
    IF ($PID == FORK())
    ...
        close file;
        signal($SEM); 
    }
    
  2. or download this
    use IPC::SysV qw(IPC_PRIVATE S_IRWXU IPC_CREAT);
    use IPC::Semaphore;
    ...
    }
    
    $sem->remove;