§ <ˆj5 ãóæ—dZddlZddlZddlZddlZddlZddlmZddlmZddlm Z ddlm Z ddlm Z dd l m Z dd l mZdd l mZdd l mZdd l mZddl mZddl mZerddlmZejdkrddlZndZgd¢Zd„Ze�9eed¦«r-ejded„ejD¦«¦«¦«Zd„Znd„Zddej e!edej¦«e"ej#efd„Z$d„Z%e d„¦«Z&dS)z%Routines common to all posix systems.éNé)ÚMACOS©ÚTimeoutExpired)Úmemoize)Ú sdiskusage)Ú usage_percent)ÚPY3)ÚChildProcessError)ÚFileNotFoundError)ÚInterruptedError)ÚPermissionError)ÚProcessLookupError)Úunicode)Ú _psutil_osx)éé)Ú pid_existsÚwait_pidÚ disk_usageÚget_terminal_mapcó|—|dkrdS tj|d¦«dS#t$rYdSt$rYdSwxYw)z6Check whether pid exists in the current process table.rTF)ÚosÚkillrr)Úpids úF/opt/cloudlinux/venv/lib64/python3.11/site-packages/psutil/_psposix.pyrr(sj€à ˆa‚x€xð ˆtð Ý Œ��Q‰Œˆðˆtøõ ððð؈uˆuÝ ðððàˆtˆtðøøøsŠ!¡ ;® ;º;ÚSignalsÚ Negsignalcó,—g|]}|j|j f‘ŒS©)ÚnameÚvalue)Ú.0Úxs rú r%Bs#€ÐFÐFÐF°!˜AœF Q¤W HÐ-ÐFÐFÐFócóF— t|¦«S#t$r|cYSwxYw)z+Convert a negative signal value to an enum.)rÚ ValueError©Únums rÚnegsig_to_enumr+Ds7€ð ݘS‘>”>Ð !øÝð ð ð ØˆJˆJˆJð øøøs ‚‘ Ÿ có—|S)Nr r)s rr+r+Ks€Øˆ r&Ú monotoniccó^‡‡‡‡‡‡‡ —‰dkrtd¦«‚d}d} ‰�| tjz} ‰¦«‰zŠ ˆˆˆˆˆˆ ˆfd„} tj‰| ¦«\} } | dkr | |¦«}Œ,tj| ¦«rtj| ¦«Stj| ¦«r"ttj| ¦« ¦«Std| z¦«‚#t$r| |¦«}Yn1t$r%|‰¦«r| |¦«}|‰¦«°YdSwxYwŒä)a›Wait for a process PID to terminate. If the process terminated normally by calling exit(3) or _exit(2), or by returning from main(), the return value is the positive integer passed to *exit(). If it was terminated by a signal it returns the negated value of the signal which caused the termination (e.g. -SIGTERM). If PID is not a children of os.getpid() (current process) just wait until the process disappears and return None. If PID does not exist at all return None immediately. If *timeout* != None and process is still alive raise TimeoutExpired. timeout=0 is also possible (either return immediately or raise). rzcan't wait for PID 0g-Cëâ6?Ncó|•—‰� ‰¦«‰krt‰‰‰¬¦«‚‰|¦«‰|dzd¦«S)N)rr!ég{®Gáz¤?r)ÚintervalÚ_minÚ_sleepÚ_timerrÚ proc_nameÚstop_atÚtimeouts €€€€€€€rÚsleepzwait_pid..sleepnsUø€à Р؈v‰xŒx˜7Ò"Ð"Ý$ W°#¸IÐFÑFÔFÐF؈ˆxÑÔÐØˆt�H˜q‘L $Ñ'Ô'Ð'r&Tzunknown process exit status %r) r(rÚWNOHANGÚwaitpidÚ WIFEXITEDÚ WEXITSTATUSÚ WIFSIGNALEDr+ÚWTERMSIGr r )rr7r5Ú_waitpidr4r2r3Ú _pid_existsr1Úflagsr8ÚretpidÚstatusr6s``` ``` @rrrOs°øøøøøøø€ð. ˆa‚x€xÝÐ/Ñ0Ô0Ð0Ø€HØ €EØÐØ •”шØ�&‘(”(˜WÑ$ˆð(ð(ð(ð(ð(ð(ð(ð(ð(ð(ð(ð-Lð, LÝœZ¨¨UÑ3Ô3‰NˆF�Fð˜Š{ˆ{à ˜5 ™?œ?�ØÝ”˜fÑ%Ô%ð Lõ”~ fÑ-Ô-Ð-Ý” Ñ'Ô'ð Lõ&¥r¤{°6Ñ':Ô':Ð&:Ñ;Ô;Ð;õ"!Ð!AÀFÑ!JÑKÔKÐKøõU ð 'ð 'ð 'Ø�u˜X‘”ˆHˆHˆHÝ ð ð ð ð�+˜cÑ"Ô"ð +Ø ˜5 ™?œ?�ð�+˜cÑ"Ô"ð +à ˆFˆFð øøøð -LsÁ C&Ã&D+Ã=*D+Ä*D+có<—trtj|¦«}n‰ tj|¦«}ns#t$rft |t ¦«rM | tj¦«¦«}n#t$rYnwxYwtj|¦«}n‚YnwxYw|j |j z}|j |j z}|j |j z}||z }trtj||¦«}||z}t!||d¬¦«}t#||||¬¦«S)a.Return disk usage associated with path. Note: UNIX usually reserves 5% disk space which is not accessible by user. In this function "total" and "used" values reflect the total and used disk space whereas "free" and "percent" represent the "free" and "used percent" user disk space. r)Úround_)ÚtotalÚusedÚfreeÚpercent)r rÚstatvfsÚUnicodeEncodeErrorÚ isinstancerÚencodeÚsysÚgetfilesystemencodingÚf_blocksÚf_frsizeÚf_bfreeÚf_bavailrrÚdisk_usage_usedr r)ÚpathÚstrFÚ avail_to_rootÚ avail_to_userrGÚ total_userÚusage_percent_users rrr§sV€õ ðÝ ŒZ˜Ñ Ô ˆˆð Ý”˜DÑ!Ô!ˆBˆBøÝ!ð ð ð ݘ$¥Ñ(Ô(ð ðØŸ;š;¥sÔ'@Ñ'BÔ'BÑCÔC�D�DøÝ)ðððØ�Dðøøøå”Z Ñ%Ô%��àð�ð  øøøðŒ[˜2œ;Ñ &€Eà”Z "¤+Ñ-€Mà”[ 2¤;Ñ.€Mà �MÑ !€DÝ ð7åÔ*¨4°Ñ6Ô6ˆð˜ Ñ%€Jõ' t¨ZÀÐBÑBÔBÐõ ؘ$ ]Ð path as a dict. Used by Process.terminal() z /dev/tty*z /dev/pts/*)ÚglobrÚstatÚst_rdevr )ÚretÚlsr!s rrrÛs‹€ð €CÝ Œ�;Ñ Ô ¥$¤)¨LÑ"9Ô"9Ñ 9€BØððˆØ˜3ˆˆˆ ‰Œˆð Ø)-ˆC•”˜‘ ” Ô%Ñ &Ð &øÝ ð ð ð Ø ˆDð øøøà €Js¿AÁ A)Á(A))'Ú__doc__r\rÚsignalrNÚtimeÚ_commonrrrrr Ú_compatr r r r rrrÚrÚ version_infoÚenumÚ__all__rÚhasattrÚIntEnumÚdictrrr+r:ÚgetattrÚminr8rrrr r&rúros[ðð ,Ð+à € € € Ø € € € Ø € € € Ø € € € Ø € € € àÐÐÐÐÐØ#Ð#Ð#Ð#Ð#Ð#ØÐÐÐÐÐØÐÐÐÐÐØ"Ð"Ð"Ð"Ð"Ð"ØÐÐÐÐÐØ&Ð&Ð&Ð&Ð&Ð&Ø&Ð&Ð&Ð&Ð&Ð&Ø%Ð%Ð%Ð%Ð%Ð%Ø$Ð$Ð$Ð$Ð$Ð$Ø'Ð'Ð'Ð'Ð'Ð'ØÐÐÐÐÐð ðØÐÐÐÐÐðÔ�vÒÐØ€K€K€K€Kà €Dð GÐ FÐ F€ðððð0И˜ ¨ Ñ2Ô2ÐØ�” Ø�T�TÐFÐF°v´~ÐFÑFÔFÑGÔGñIôI€Iðððððððð¨$Ø”jØ�G˜D +¨t¬yÑ9Ô9ØØ”JØ#ð ULðULðULðULðp1Pð1Pð1Pðh ð ð ñ „ð ð ð r&