mirror of
https://github.com/NixOS/nix
synced 2025-06-28 22:01:15 +02:00
nix-worker: put the pid of the caller in argv[1]
This is useful for debugging.
This commit is contained in:
parent
2b4964f319
commit
1d487dc6a6
3 changed files with 25 additions and 2 deletions
|
@ -287,7 +287,7 @@ static void * oomHandler(size_t requested)
|
|||
|
||||
|
||||
int exitCode = 0;
|
||||
|
||||
char * * argvSaved = 0;
|
||||
|
||||
}
|
||||
|
||||
|
@ -298,6 +298,8 @@ int main(int argc, char * * argv)
|
|||
{
|
||||
using namespace nix;
|
||||
|
||||
argvSaved = argv;
|
||||
|
||||
/* If we're setuid, then we need to take some security precautions
|
||||
right away. */
|
||||
if (argc == 0) abort();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue