src\Aspire.Tray\Mac\MacDetachedProcess.cs (11)
44Check(InitializeActions(out var actions), "initialize tray file actions");
47Check(InitializeAttributes(out var attributes), "initialize tray launch attributes");
53Check(SetFlags(ref attributes, 0x0400 | 0x4000 | 0x0008), "detach the tray");
55Check(SetSignalMask(ref attributes, ref signalMask), "reset the tray signal mask");
61Check(AddDuplicate(ref actions, descriptor, 1), "redirect tray output");
62Check(AddDuplicate(ref actions, descriptor, 2), "redirect tray errors");
65Check(AddOpen(ref actions, 0, "/dev/null", 0, 0), "redirect tray input");
66Check(AddWorkingDirectory(ref actions, startInfo.WorkingDirectory), "set the tray working directory");
69Check(Spawn(out var processId, startInfo.FileName, ref actions, ref attributes,
83Check(DestroyAttributes(ref attributes), "release tray launch attributes");
88Check(DestroyActions(ref actions), "release tray file actions");