mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Pass Ctrl+C on to child process when running panda3d from cmd-line
This commit is contained in:
parent
abb6ee0542
commit
25cfec3760
@ -1528,6 +1528,17 @@ create_runtime_environment() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
|
// If we're running from the console, make sure that terminating the parent
|
||||||
|
// process will cause the child process to terminate as well.
|
||||||
|
if (_console_environment) {
|
||||||
|
struct sigaction ignore;
|
||||||
|
memset(&ignore, 0, sizeof(ignore));
|
||||||
|
ignore.sa_handler = SIG_IGN;
|
||||||
|
sigaction(SIGINT, &ignore, NULL);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
_created_runtime_environment = true;
|
_created_runtime_environment = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user