1 $NetBSD: patch-toolkit_components_terminator_nsTerminator.cpp,v 1.3 2019/03/19 16:11:28 ryoon Exp $
3 * Fix segfault on exit under NetBSD
5 --- firefox-102.0/toolkit/components/terminator/nsTerminator.cpp.~2~ 2022-05-31 17:22:51.266704060 +0000
6 +++ firefox-102.0/toolkit/components/terminator/nsTerminator.cpp 2022-05-31 17:32:46.773492649 +0000
15 #include "mozilla/AppShutdown.h"
18 Sleep(HEARTBEAT_INTERVAL_MS /* ms */);
20 - usleep(HEARTBEAT_INTERVAL_MS * 1000 /* usec */);
21 + struct timespec tickd;
24 + nanosleep(&tickd, NULL);
27 if (gHeartbeat++ < timeToLive) {