MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / resetOnFork

Method resetOnFork

src/processinfo.cpp:452–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void
453ProcessInfo::resetOnFork()
454{
455 // Initialize the log file
456 Util::initializeLogFile(SharedData::getTmpDir());
457
458 DmtcpMutexInit(&tblLock, DMTCP_MUTEX_NORMAL);
459 ppid = pid;
460 pid = getpid();
461
462 upid = UniquePid();
463 uppid = UniquePid();
464 _upidStr.clear();
465
466 isRootOfProcessTree = false;
467 _pthreadJoinId.clear();
468 _ckptFileName.clear();
469 _ckptFilesSubDir.clear();
470 updateCkptDirFileSubdir();
471}
472
473void
474ProcessInfo::restoreHeap()

Callers 1

processInfo_EventHookFunction · 0.45

Calls 4

DmtcpMutexInitFunction · 0.85
UniquePidClass · 0.85
clearMethod · 0.80
getpidFunction · 0.50

Tested by

no test coverage detected