summaryrefslogtreecommitdiff
path: root/devel/electron5/files/patch-electron_atom_browser_relauncher__linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron5/files/patch-electron_atom_browser_relauncher__linux.cc')
-rw-r--r--devel/electron5/files/patch-electron_atom_browser_relauncher__linux.cc32
1 files changed, 32 insertions, 0 deletions
diff --git a/devel/electron5/files/patch-electron_atom_browser_relauncher__linux.cc b/devel/electron5/files/patch-electron_atom_browser_relauncher__linux.cc
new file mode 100644
index 000000000000..132838134d02
--- /dev/null
+++ b/devel/electron5/files/patch-electron_atom_browser_relauncher__linux.cc
@@ -0,0 +1,32 @@
+--- electron/atom/browser/relauncher_linux.cc.orig 2019-04-04 16:09:31 UTC
++++ electron/atom/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/file_util.h"
+ #include "base/files/scoped_file.h"
+@@ -26,6 +28,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";
+@@ -50,6 +56,7 @@ void RelauncherSynchronizeWithParent() {
+
+ // Wait for the parent to exit
+ parentWaiter.Wait();
++#endif
+ }
+
+ int LaunchProgram(const StringVector& relauncher_args,