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

Function dmtcpProcessFailedExec

src/execwrappers.cpp:464–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464static void
465dmtcpProcessFailedExec(const char *path, const char *newArgv[])
466{
467 int saved_errno = errno;
468
469 if (Util::isSetuid(path)) {
470 Util::freePatchedArgv(newArgv);
471 }
472
473 JTRACE("Processed failed Exec Attempt") (path) (getenv("LD_PRELOAD"));
474 JASSERT(_real_close(PROTECTED_LIFEBOAT_FD) == 0) (JASSERT_ERRNO);
475 errno = saved_errno;
476}
477
478static string
479getUpdatedLdPreload(const char *filename, const char *currLdPreload)

Callers 1

dmtcp_execvpeFunction · 0.85

Calls 1

_real_closeFunction · 0.70

Tested by

no test coverage detected