mirror of
https://github.com/simh/simh.git
synced 2026-02-24 08:03:13 +00:00
SCP: Silence GCC optimizer warnings about unused function results
This commit is contained in:
@@ -867,7 +867,7 @@ if (!simulator_panel) {
|
||||
p->pidProcess = fork();
|
||||
if (p->pidProcess == 0) {
|
||||
close (0); close (1); close (2); /* make sure not to pass the open standard handles */
|
||||
dup (dup (open ("/dev/null", O_RDWR))); /* open standard handles to /dev/null */
|
||||
if (dup (dup (open ("/dev/null", O_RDWR)))) {}; /* open standard handles to /dev/null */
|
||||
if (execlp (sim_path, sim_path, p->temp_config, NULL, NULL)) {
|
||||
perror ("execl");
|
||||
exit(errno);
|
||||
|
||||
Reference in New Issue
Block a user