X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/bf4857d3d4c67a0f185a99b63003e7fa43cbe2c4..c926d3309ace0ecb51582617fb45c6297f22f886:/res/micropolis.tcl diff --git a/res/micropolis.tcl b/res/micropolis.tcl index 01f8749..5704330 100644 --- a/res/micropolis.tcl +++ b/res/micropolis.tcl @@ -416,6 +416,10 @@ set FontPath "[pwd]/res/dejavu-lgc" system "xset -fp \"$FontPath\" >/dev/null 2>&1" system "xset +fp \"$FontPath\" >/dev/null 2>&1" +# Ignore SIGCHLD for spawned sound-player childs, this should lead to them +# being reaped by init +signal ignore SIGCHLD + ######################################################################## # Messages @@ -955,10 +959,7 @@ proc UIStartSoundOn {win chan sound {opts ""}} { proc UIMakeSound {chan sound {opts ""}} { - # Send message to Python to play sound. - EchoPlaySound $sound - - #UIDoSound "sound play $sound -replay -channel $chan $opts" + playsound $chan $sound $opts }