Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
3
/V)jj
ã @ s~ d dl Z d dlZd dlZd dlmZmZ d dlmZ d dlZG dd„ deƒZ G dd„ dƒZ
dd „ Zed
krzej
eƒ pvd ƒ dS )é N)ÚEWOULDBLOCKÚEEXIST)Úbstrc @ s e Zd ZdZdS )ÚLockfileLockedExceptionz$thrown ONLY when pid file is locked.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r
r
ú!/usr/lib/python3.6/rhnLockfile.pyr s r c @ s* e Zd ZdZd dd„Zdd„ Zdd„ ZdS )
ÚLockfilezïclass that provides simple access to a PID-style lockfile.
methods: __init__(lockfile), acquire(), and release()
NOTE: currently acquires upon init
The *.pid file will be acquired, or an LockfileLockedException is raised.
Nc C s t jjt jjt jj|ƒƒƒ| _|| _| js4t jƒ | _t jj| jƒ}t jj |ƒs–yt j
|ƒ W n8 tk
r” tj
ƒ d }t|dƒrŽ|jtkrŽn‚ Y nX t j| jt jt jB t jB dƒ| _| jƒ dS )zlcreate (if need be), and acquire lock on lockfile
lockfile example: '/var/run/up2date.pid'
é Úerrnoi€ N)ÚosÚpathÚabspathÚ
expanduserÚ
expandvarsÚlockfileÚpidÚgetpidÚdirnameÚexistsÚmakedirsÚOSErrorÚsysÚexc_infoÚhasattrr r ÚopenÚO_RDWRÚO_CREATÚO_SYNCÚfÚacquire)Úselfr r r Úer
r
r Ú__init__$ s"
zLockfile.__init__c
C s yt j| jt jt jB ƒ W nD tk
r^ tjƒ d jt krXt
d| j dtjƒ d ƒ‚n‚ Y nX t j | jt jdƒ t
j| jdƒ t
j| jtt| jƒd ƒƒ dS )z5acquire the lock; else raise LockfileLockedException.r
zcannot acquire lock on %s.Né r Ú
)ÚfcntlÚflockr" ZLOCK_EXZLOCK_NBÚIOErrorr r r r r r ZF_SETFDr Ú ftruncateÚwriter Ústrr )r$ r
r
r r# E s zLockfile.acquirec C s, t j| jƒ tj| jtjƒ t j| jƒ d S )N)r Úunlinkr r) r* r" ZLOCK_UNÚclose)r$ r
r
r ÚreleaseV s zLockfile.release)N)r r r r r&