MCPcopy
hub / github.com/celery/celery / after_chdir_do

Function after_chdir_do

celery/platforms.py:419–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

417 maybe_drop_privileges(uid=uid, gid=gid)
418
419 def after_chdir_do():
420 # Since without stderr any errors will be silently suppressed,
421 # we need to know that we have access to the logfile.
422 logfile and open(logfile, 'a').close()
423 # Doesn't actually create the pidfile, but makes sure it's not stale.
424 if pidfile:
425 _create_pidlock(pidfile).release()
426
427 return DaemonContext(
428 umask=umask, workdir=workdir, fake=fake, after_chdir=after_chdir_do,

Callers

nothing calls this directly

Calls 4

openFunction · 0.85
_create_pidlockFunction · 0.85
releaseMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected