Commit Graph

20 Commits

Author SHA1 Message Date
6bdbe0ffb4 Replaced __linux macro with __linux__ 2021-01-11 13:31:30 +01:00
2c50767009 On OSX, we use boost::process::spawn() to launch new instances of PrusaSlicer from another PrusaSlicer.
boost::process::spawn() sets SIGCHLD to SIGIGN for the child process, thus if a child PrusaSlicer spawns another
subprocess and the subrocess dies, the child PrusaSlicer will not receive information on end of subprocess
(posix waitpid() call will always fail).
https://jmmv.dev/2008/10/boostprocess-and-sigchld.html
The child instance of PrusaSlicer has to reset SIGCHLD to its default, so that posix waitpid() and similar continue to work.
Fixes #5507
2021-01-07 19:14:48 +01:00
b31f22e401 boost::process::spawn() sets SIGINT to SIGIGN, which collides with boost::process waiting for a child to finish!
https://jmmv.dev/2008/10/boostprocess-and-sigchld.html
Thus reset the SIGINT to its default, so that posix waitpid() and similar continue to work.
Fixes Crash on Eject in Second Instance on macOS #5507
2021-01-07 17:38:56 +01:00
fe618b04e3 starting prusaslicer from gcode viewer and vice versa, by menus or by stl drop on icon. Bring gcode viewer forward after start. 2020-10-12 15:26:19 +02:00
140cf15222 Maybe one day we will be able to run PrusaGCodeViewer, but for now the Apple notarization
process refuses Apps with multiple binaries and Vojtech does not know any workaround.
Just run PrusaSlicer and give it a --gcodeviewer parameter.
2020-10-01 15:11:56 +02:00
41d1c4dd26 Fixed launching of new slicer instances on Windows. 2020-09-09 11:41:23 +02:00
125218c996 Fix of a preceding merge 2020-09-08 14:25:10 +02:00
9c9a215360 Fix of the previous merge, Windows specific. 2020-09-08 14:08:03 +02:00
f348a2541a Merge branch 'vb_gcodeviewer_menu' 2020-09-08 13:51:02 +02:00
651be5ad73 WIP Standalone G-code viewer 2020-09-08 13:33:43 +02:00
c79faa5e7e osx fix 2020-09-08 12:39:11 +02:00
c70e2199ed osx fix 2020-09-08 11:49:02 +02:00
c4c5a80a67 Another fix 2020-09-08 11:36:00 +02:00
53367f7aeb Trying to fix spawn on OSX 2020-09-08 11:22:27 +02:00
8e534d192d Improved logging of spawning a subprocess. 2020-09-08 09:57:17 +02:00
e3494aebb2 Fix on OSX 2020-09-07 22:00:01 +02:00
c73cc699e9 Fixing Linux build 2020-09-07 17:41:16 +02:00
642329a7fc Fix for OSX 2020-09-07 17:09:27 +02:00
dd828005b4 Fix of previous commit, added symlinks to gcodeviewer on Linux & OSX 2020-09-07 16:56:22 +02:00
611bf4d59a WIP: G-code viewer menu, refactoring of starting a background process. 2020-09-07 15:59:45 +02:00