diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /devel/electron39/files/patch-electron_shell_browser_relauncher__linux.cc | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'devel/electron39/files/patch-electron_shell_browser_relauncher__linux.cc')
| -rw-r--r-- | devel/electron39/files/patch-electron_shell_browser_relauncher__linux.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/devel/electron39/files/patch-electron_shell_browser_relauncher__linux.cc b/devel/electron39/files/patch-electron_shell_browser_relauncher__linux.cc new file mode 100644 index 000000000000..f27610005540 --- /dev/null +++ b/devel/electron39/files/patch-electron_shell_browser_relauncher__linux.cc @@ -0,0 +1,32 @@ +--- electron/shell/browser/relauncher_linux.cc.orig 2025-10-27 17:58:27 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" +@@ -28,6 +30,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"; +@@ -51,6 +57,7 @@ void RelauncherSynchronizeWithParent() { + + // Wait for the parent to exit + GetParentWaiter().Wait(); ++#endif + } + + int LaunchProgram(const StringVector& relauncher_args, |
