mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
parent
de71cebc3a
commit
6686b54077
7 changed files with 9 additions and 9 deletions
|
@ -137,7 +137,7 @@ public:
|
|||
: state(state)
|
||||
, sampleInterval(period)
|
||||
, profileFd([&]() {
|
||||
AutoCloseFD fd = toDescriptor(open(profileFile.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0660));
|
||||
AutoCloseFD fd = toDescriptor(open(profileFile.string().c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0660));
|
||||
if (!fd)
|
||||
throw SysError("opening file %s", profileFile);
|
||||
return fd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue