ports/devel/electron35/files/patch-electron_shell_browser_relauncher__linux.cc
Hiroki Tagato 3fe2f64857 devel/electron35: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.

It's easier than you think.

If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.

WWW: https://electronjs.org/
2025-04-08 21:01:02 +09:00

32 lines
997 B
C++

--- electron/shell/browser/relauncher_linux.cc.orig 2024-10-22 02:29:46 UTC
+++ electron/shell/browser/relauncher_linux.cc
@@ -6,8 +6,10 @@
#include <fcntl.h>
#include <signal.h>
+#if !defined(__FreeBSD__)
#include <sys/prctl.h>
#include <sys/signalfd.h>
+#endif
#include "base/files/scoped_file.h"
#include "base/logging.h"
@@ -24,6 +26,10 @@ void RelauncherSynchronizeWithParent() {
base::ScopedFD relauncher_sync_fd(kRelauncherSyncFD);
static const auto signum = SIGUSR2;
+#if defined(__FreeBSD__)
+ PLOG(ERROR) << "signalfd & prctl";
+ fprintf(stderr, "Not Implemented signalfd & prctl in atom/browser/relauncher_linux.cc");
+#else
// send signum to current process when parent process ends.
if (HANDLE_EINTR(prctl(PR_SET_PDEATHSIG, signum)) != 0) {
PLOG(ERROR) << "prctl";
@@ -48,6 +54,7 @@ void RelauncherSynchronizeWithParent() {
// Wait for the parent to exit
parentWaiter.Wait();
+#endif
}
int LaunchProgram(const StringVector& relauncher_args,