Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0468e33 authored by Nick Kralevich's avatar Nick Kralevich
Browse files

common_time_server.cpp: more O_CLOEXEC

Change-Id: I2185a462d72e11f5a015c525d2d37c52ecc3e430
parent 738a557d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ CommonTimeServer::CommonTimeServer()

    // Create the eventfd we will use to signal our thread to wake up when
    // needed.
    mWakeupThreadFD = eventfd(0, EFD_NONBLOCK);
    mWakeupThreadFD = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);

    // seed the random number generator (used to generated timeline IDs)
    srand48(static_cast<unsigned int>(systemTime()));