freebsd-ports/devel/RStudio/files/patch-src_cpp_session_SessionMain.cpp
Yuri Victorovich 7e82f3089e devel/RStudio: Update 1.2.679 -> 1.2.1320
* Update WWW
* Various trivial patch and Makefile updates
2019-03-08 16:26:47 +00:00

15 lines
438 B
C++

--- src/cpp/session/SessionMain.cpp.orig 2019-02-18 01:05:52 UTC
+++ src/cpp/session/SessionMain.cpp
@@ -1620,8 +1620,12 @@ int main (int argc, char * const argv[])
// move to own process group
#ifndef _WIN32
+#if defined(__FreeBSD__)
+ ::setpgrp(0, 0);
+#else
::setpgrp();
#endif
+#endif
// get main thread id (used to distinguish forks which occur
// from the main thread vs. child threads)